Closed avallecam closed 3 weeks ago
Ok, looks like an issue with the cmdstan
installation, which is installed via the cmdstanr::install_cmdstan
command when installing the epikinetics
package. The logs show it has been installed to the default location of .cmdstan/cmdstan-2.35.0
, but cmdstanr
can't find it for some reason.
To debug, first try running cmdstanr::cmdstan_path()
to see whether the path to the installation is set correctly. Can you also check whether the executable .cmdstan/cmdstan-2.35.0/bin/stanc.exe
exists?
Here is the first output:
cmdstanr::cmdstan_path()
[1] "C:/Users/AndreeValleCampos/.cmdstan/cmdstan-2.35.0"
Warning messages:
1: Can't find CmdStan makefile to detect version number. Path may not point to valid installation.
2: Can't find CmdStan makefile to detect version number. Path may not point to valid installation.
Here are the files within bin
AzureAD+AndreeValleCampos@PC-HGT6VL3 MINGW64 ~/.cmdstan/cmdstan-2.35.0/cmdstan-2.35.0/bin
$ ls -la
total 50284
drwxr-xr-x 1 AzureAD+AndreeValleCampos 4096 0 Oct 3 16:10 ./
drwxr-xr-x 1 AzureAD+AndreeValleCampos 4096 0 Oct 3 16:17 ../
-rw-r--r-- 1 AzureAD+AndreeValleCampos 4096 15718976 Jun 3 15:52 linux-stanc
-rw-r--r-- 1 AzureAD+AndreeValleCampos 4096 12066680 Jun 3 15:52 mac-stanc
-rwxr-xr-x 1 AzureAD+AndreeValleCampos 4096 23699408 Jun 3 15:52 windows-stanc*
I found the stanc
file in the make
folder
AzureAD+AndreeValleCampos@PC-HGT6VL3 MINGW64 ~/.cmdstan/cmdstan-2.35.0/cmdstan-2.35.0/make
$ ls -la
total 21
drwxr-xr-x 1 AzureAD+AndreeValleCampos 4096 0 Oct 3 16:17 ./
drwxr-xr-x 1 AzureAD+AndreeValleCampos 4096 0 Oct 3 16:17 ../
-rw-r--r-- 1 AzureAD+AndreeValleCampos 4096 632 Jun 3 15:39 command
-rw-r--r-- 1 AzureAD+AndreeValleCampos 4096 1055 Jun 3 15:39 local.example
-rw-r--r-- 1 AzureAD+AndreeValleCampos 4096 3298 Jun 3 15:39 program
-rw-r--r-- 1 AzureAD+AndreeValleCampos 4096 3159 Jun 3 15:39 stanc
-rw-r--r-- 1 AzureAD+AndreeValleCampos 4096 3911 Jun 3 15:39 tests
Ok, can you try deleting and reinstalling cmdstan
to see if there's an error while installing:
C:\Users\AndreeValleCampos/.cmdstan/cmdstan-2.35.0
cmdstanr::install_cmdstan
it worked!
I when out of the renv
-protected project I was trying to do the installation and run
install.packages('cmdstanr', repos = c('https://stan-dev.r-universe.dev', getOption('repos')))
cmdstanr::install_cmdstan()
remotes::install_github("seroanalytics/epikinetics")
then I returned to the renv project and did
remotes::install_github("seroanalytics/epikinetics")
which also worked.
Thanks for the guidelines!
Thank you for sharing the installation steps in the README. I installed
cmdstanr
successfully, but got a lengthy error with installing the package. Sharing the outputs here:in case useful