Hi everyone,
I am a student/ newbie to rstan and rstanarm to do my stats homework. I have been trying to download both, but I keep running into the same issue with rcppParallel. I was wondering if anyone can guide me in the right direction in fixing this problem. I am not a programmer and would really appreciate some guidance. Thank you for your time.
install.packages("rstan", repos = "https://cloud.r-project.org/", dependencies = TRUE)
There are binary versions available but the
source versions are later:
binary source needs_compilation
RcppParallel 5.0.2 5.0.3 TRUE
rmarkdown 2.6 2.7 FALSE
** package 'RcppParallel' successfully unpacked and MD5 sums checked
** using staged installation
** preparing to configure package 'RcppParallel' ...
*** configured file: 'src/Makevars.in' => 'src/Makevars'
** finished configure for package 'RcppParallel'
** libs
*** arch - i386
Created ../build/lib_release directory
../../build/Makefile.tbb:32: CONFIG: cfg=release arch=ia32 compiler=gcc target=windows runtime=mingw
sh: C:/Users/Bpazo/Documents/R: Is a directory
make[2]: *** [../../build/common_rules.inc:119: concurrent_hash_map.o] Error 126
make[1]: *** [Makefile:104: tbb_release] Error 2
cp: cannot stat 'tbb/build/lib_release/tbb*.dll': No such file or directory
make: *** [Makevars:100: tbb] Error 1
*ERROR: compilation failed for package 'RcppParallel'*
* removing 'C:/Users/Bpazo/Documents/R/win-library/4.0/RcppParallel'
Warning in install.packages :
installation of package ‘RcppParallel’ had non-zero exit status
* installing *source* package 'rmarkdown' ...
** package 'rmarkdown' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
e downloaded source packages are in
‘**C:\Users\Bpazo\AppData\Local\Temp\RtmpaYBmkh\downloaded_packages’**
**> **
**> example(stan_model, package = "rstan", run.dontrun = TRUE)**
**Loading required package: StanHeaders**
**Error: package or namespace load failed for ‘StanHeaders’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):**
** there is no package called ‘RcppParallel’**
**Error: package ‘StanHeaders’ could not be loaded **
**```**
format_code(like_this, if_applicable)
install.packages('StanHeaders')
Installing package into ‘C:/Users/Bpazo/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependency ‘RcppParallel’
There is a binary version available but the source version is later:
binary source needs_compilation
RcppParallel 5.0.2 5.0.3 TRUE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/StanHeaders_2.21.0-7.zip'
Content type 'application/zip' length 2372172 bytes (2.3 MB)
downloaded 2.3 MB
package ‘StanHeaders’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Bpazo\AppData\Local\Temp\RtmpaYBmkh\downloaded_packages
installing the source package ‘RcppParallel’
trying URL 'https://cran.rstudio.com/src/contrib/RcppParallel_5.0.3.tar.gz'
Content type 'application/x-gzip' length 1469709 bytes (1.4 MB)
downloaded 1.4 MB
* installing *source* package 'RcppParallel' ...
** package 'RcppParallel' successfully unpacked and MD5 sums checked
** using staged installation
** preparing to configure package 'RcppParallel' ...
*** configured file: 'src/Makevars.in' => 'src/Makevars'
** finished configure for package 'RcppParallel'
** libs
*** arch - i386
Created ../build/lib_release directory
../../build/Makefile.tbb:32: CONFIG: cfg=release arch=ia32 compiler=gcc target=windows runtime=mingw
**sh: C:/Users/Bpazo/Documents/R: Is a directory**
**make[2]: *** [../../build/common_rules.inc:119: concurrent_hash_map.o] Error 126**
**make[1]: *** [Makefile:104: tbb_release] Error 2**
**cp: cannot stat 'tbb/build/lib_release/tbb*.dll': No such file or directory**
**make: *** [Makevars:100: tbb] Error 1**
**ERROR: compilation failed for package 'RcppParallel'**
*** removing 'C:/Users/Bpazo/Documents/R/win-library/4.0/RcppParallel'**
**Warning in install.packages :**
** installation of package ‘RcppParallel’ had non-zero exit status**
Thank you again for your time.