Thanks, Jiefei, unfortunately your example does not work on my system,
and also it is far from minimal. The error message you are getting is
from Windows and could be caused for example by accidental quoting of
the path using single quotes.
Issues with RStudio or devtools would have to be dis
Thanks, Tomas. I took your suggestion and change the make file to
test1:=$(shell $(R_HOME)/bin/R --slave -e 'runif(3)')
all: testPackage.dll
echo "test1 is $(test1)"
echo "R_HOME is $(R_HOME)"
However, R CMD INSTALL still gives me the same error:
> R CMD INSTALL testPackage_1.0.tar.gz*
Thanks a lot for your suggestions. I see what you mean. I have removed all
unnecessary files and dependences on https://github.com/Jiefei-Wang/example,
but still no luck. I've tried to install the package as a user, not admin,
but I got the same error. Also, I apologize for spamming the mail list.
Thanks for the heads up. The new result for round(51/80, digits=3) is
also consistent with sprintf("%.3f", 51/80), format(51/80, digits=3),
print(51/80, digits=3), and with the sprintf() function in C. Which is
somehow satisfying.
H.
On 3/5/20 05:54, Therneau, Terry M., Ph.D. via R-devel wrot
Jiefei,
you did not commit all files into the example package - your example has things
like RcppExports.cpp as well as additional flags which are not in your GH
project. I suspect the issue is with the extra flags you're adding - those
don't come from R. Please make sure you can replicate the
Thanks for your test result Simon, I really appreciate it. I borrowed a new
laptop and found the issue is only reproducible on my machine, so there is
something not in R or the package that causes this problem. I will
stop chattering and try to figure out where the problem is. Thanks again
for your