I am submitting a R package using rstan. I used the rstan_package_skeleton,
but received this error message when loading all files in the folder:
“Error in getDLLRegisteredRoutines.DLLInfo(dll, addNames = FALSE) :
must specify DLL via a “DLLInfo” object. See getLoadedDLLs()”
When I build and reload , I have received these messages:
"** testing if installed package can be loaded
Error in library.dynam(lib, package, package.lib) :
DLL ‘rstanarm’ not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
ERROR: loading failed
Error in library.dynam(lib, package, package.lib) :
DLL ‘rstanarm’ not found: maybe not installed for this architecture?
Error: loading failed
Execution halted"
Does anyone have ideas why this error was there? The package is not depending on rstanarm,
I am finalizing it for submission to cran, I have not used rstan_package_skeleton at the start and my examples all have running time > 5 sec even for the simple one. After reading the guideline from this forum, I used the rstan_package_skeleton to rebuild the package. I will need help for its submission, thank you
I had a similar error but now I can build it and load it as a package.
I added a test folder. I have saved the .stan files in the test/testthat
folder but I still have these messages:
Warnings
mlmm (@testthat.R#70) - ‘set_cppo’ is defunct; manually edit your
Makevars file if necessary
mlmm (@testthat.R#70) - path[1]=“mlmm_code.stan”: The system cannot find
the file specified
mlmm (@testthat.R#70) - cannot open file
‘C:\Users\mlmm\tests\testthat\mlmm_code.stan’: No such file or directory
I used stan() function in .R function , do I need to specify the path of
.stan file such as " pathdir/mlmm/exec/" to call the .stan funtion:
Because I have got this error after the checking:
** running examples for arch ‘i386’ … ERROR
Running examples in ‘mlmm-Ex.R’ failed
The error most likely occurred in: