R pkg using rstantools cran pre-check failed


Have been updating the ctsem package to better conform to stan guidelines, works fine for me on windows and ubuntu, getting an error that means very little to me from a debian build in the cran pre-check – can anyone help?

/home/hornik/tmp/R/etc/Makeconf:164: recipe for target ‘stan_files/ctsm.o’ failed

Full log file:



You need to make sure the sqrt operations in doubles, such as

which you can make
sqrt(nlatentpop + ndynerror + 0.0)


Wonderful, thanks… hopefully that does the trick!
Edit: works good.