본문 바로가기

r error3

[R] R package error 해결 방법 중 하나 Single cell 분석에서 아주 화가나는 error가 발생했었습니다. jointlevel_fft_twosided.cpp:10:10: fatal error: fftw3.h: No such file or directory #include ^~~~~~~~~ compilation terminated. /home/user/anaconda3/lib/R/etc/Makeconf:181: recipe for target 'jointlevel_fft_twosided.o' failed make: *** [jointlevel_fft_twosided.o] Error 1 ERROR: compilation failed for package ‘qqconf’ * removing ‘/home/user/R/x86_64-conda-li.. 2022. 3. 22.
[R] pheatmap에 오류발생 (NA/NaN/Inf in foreign function call) pheatmap을 다루던 중 오류가 발생을 하는 경우가 있습니다. 그중 최근 해결한 문제들에 대해서 간단하게 포스팅 해보도록 하겠습니다. Error in hclust(d, method = method) : NA/NaN/Inf in foreign function call (arg 10) Calls: pheatmap -> cluster_mat -> hclust Execution halted 위와 같은 문제는 데이터안에 NA, nan inf가 있는지 확인하시고 만약 세개다 없을 경우 row든 column이든 평균이 0인 경우를 제외하면 됩니다. # NA 확인 View(apply(mat,1,is.na)) # NAN 확인 View(apply(mat,1,is.nan)) # Inf 확인 View(apply(mat,1.. 2021. 4. 19.
[R] read.table 시에 에러 해결 R을 읽다 보면 다음과 같은 에러가 발생합니다. Error in make.names(col.names, unique = TRUE) : invalid multibyte string at 'ȣ' 자료에 없던 내용이 문제라고 뜬다면 대부분 encoding 문제이기 때문에 다음을 추가해주면 됩니다. data 2020. 10. 7.