My code was running perfectly fine, until last week it started to give me really long error code that I couldn't understand.
g++.exe: error: Chua/Documents/R/win-library/3.3/StanHeaders/libs/x64: No such file or directory
I'm not sure if I understand what you said that StanHeaders was installed before Rtools. Isn't StanHeaders installed along with rstan when we specify dependencies = TRUE? Anyway, if that is the source of error, what should I do? remove.packages(StanHeaders) doesn't help.
dir(system.file("libs", package = "StanHeaders"), recursive = TRUE)
Hi Ben,The output of that isdir(system.file("libs", package = "StanHeaders"), recursive = TRUE)[1] "i386/StanHeaders.dll" "i386/symbols.rds" "x64/StanHeaders.dll" "x64/symbols.rds"
g++.exe: error: Chua/Documents/R/win-library/3.3/StanHeaders/libs/x64: No such file or directory
Upon further review, I think the problem is the space in the directory name between huiying and Chua. We can fix that, although for the time being it may be better to install packages to a directory without spaces.
devtools::install_github("stan-dev/rstan", ref = "develop", subdir = "rstan/rstan", build_vignettes = TRUE, dependencies = TRUE)
I don't think the space could be problem because i have been running rstan successfully on the same desktop for a few months.
The command line gave me this:> devtools::install_github("stan-dev/rstan", ref = "develop", subdir = "rstan/rstan", build_vignettes = TRUE, dependencies = TRUE)Downloading GitHub repo stan-dev/rstan@developError in utils::unzip(src, exdir = target) :cannot open file 'C:/Users/HUIYIN~1/AppData/Local/Temp/RtmpAvzGhT/devtools16641de2372c/stan-dev-rstan-cc141a5/rstan/rstan/R/AllClass.R': No such file or directoryIn addition: Warning message:GitHub repo contains submodules, may not function as expected!I think it doesn't work? but install.packages("rstan", dependencies = TRUE) gave no problem.
--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
To post to this group, send email to stan-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am using Rtools33 with R 3.3.1 and had (roughly) the same error that Huiying had:g++.exe: error: Files/R/R-3.3.1/library/StanHeaders/libs/x64: No such file or directoryAnd, like g++.exe, I couldn't find that directory either. But I can find:c:/Program Files/R/R-3.3.1/library/StanHeaders/libs/x64Is g++.exe having trouble understanding the " " in Windows path names?
devtools::install_github("stan-dev/rstan", ref = "develop", subdir = "rstan/rstan", build_vignettes = TRUE, dependencies = TRUE)
Error in loadNamespace(name) : there is no package called ‘curl’
install.packages("curl")
#pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated#pragma message: NOTE: Use of this header (bool_trait_def.hpp) is deprecated
I asked my sysadmit, and he couldn't tell.Can I directly download manually whatever I need to my computer, so that I can install rstan? If so, what url should I download it fromand where should I save it my computer? How do I ensure that all the dependencies are also in the same place?thanks so much for the help.
library(rstan)
source("https://raw.githubusercontent.com/stan-dev/rstan/develop/rstan/rstan/R/plugin.R")
I can confirm the issue with the space in the name - I can't avoid it due to enterprise policies on the computer.
install.packages("http://win-builder.r-project.org/Z1N0He79FT3r/rstan_2.10.1-1.zip",
repos = NULL, dependencies = TRUE)