R CMD INSTALL error: Unexpected Symbol in test_load_package() function

前端 未结 1 981
一向
一向 2021-01-27 09:29

Issue:

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

相关标签:
1条回答
  • 2021-01-27 09:35

    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

    0 讨论(0)
提交回复
热议问题