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?

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

Full log file:
https://win-builder.r-project.org/incoming_pretest/ctsem_2.6.2_20180606_162211/Debian/00install.out

package:

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


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

1 Like

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