I\'m just trying to build a few packages from source and am running into an error
Error: unexpected symbol in \"tools:::.test_load_packag
As I see it, the error comes from the apostrophe - R can't know that this doesn't end the path, but is part of it. Try it without it and it should work I guess. One solution might be also to use this kind of quotation instead " "
, maybe this works out as well, because then the apostrophe doesn't end it any more...
EDIT: In order to install a package foo
via command line to an specific library folder via command line you can use
R CMD build foo
R CMD INSTALL -l /home/daniel/myPkg/ foo_1.0.tar.gz
This means in your case this should work:
R CMD INSTALL --build --merge-multiarch -l C:/Program Files/RStudio/R/library rbenchmark_1.0.0.tar.gz