Error: package or namespace load failed for ‘rstan’ in rbind(info, getNamespaceInfo(env, “S3methods”)):
number of columns of matrices must match (see arg 2)
When you get the error involving rbind(info, getNamespaceInfo(env, "S3methods")), can you post the output of traceback(). Also, when restarting R you have to make sure that there are no stanfit objects being autoloaded into your session via the .RData file in the startup directory.
Загрузка требуемого пакета: rstan
Загрузка требуемого пакета: ggplot2
Загрузка требуемого пакета: StanHeaders
Error: package or namespace load failed for ‘rstan’ in rbind(info, getNamespaceInfo(env, “S3methods”)):
number of columns of matrices must match (see arg 2)
Warning message:
пакет ‘rstan’ был собран под R версии 3.6.0
Sorry for nonresponding for so loing as I was extremely bussy.
I made these steps but then I get the following message:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! C:/R/R-3.5.1/library/StanHeaders/libs/x64/StanHeaders.dll: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
In addition: Warning message:
In readLines(file, warn = TRUE) :
incomplete final line found on ‘D:\Р’РЁР\3 РєСѓСЂСЃ\РЎРѕРЅСЏ\8schools.stan’
If cat(strsplit(Sys.getenv(“PATH”), “;”)[[1]], sep = “\n”) shows anything pertaining to mingw_32 (which appears likely), then you need to remove it from your PATH using something like
Thank you for detailed steps! I has been following them carefully. And I get 10. However, I still get the error when trying to build a model:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! g++: not found
make: *** [file20246b3242fb.o] Error 127
In addition: Warning messages:
1: In readLines(file, warn = TRUE) :
incomplete final line found on ‘D:\Р’РЁР\3 РєСѓСЂСЃ\РЎРѕРЅСЏ\8schools.stan’
2: In system(cmd, intern = !verbose) :
running command ‘C:/R/R-35~1.1/bin/x64/R CMD SHLIB file20246b3242fb.cpp 2> file20246b3242fb.cpp.err.txt’ had status 1