Message error 'C:/Program' not found with Rcpp

后端 未结 2 995
北恋
北恋 2020-12-19 13:48

I\'m running a 64-bit Windows 7 platform.

I have added to my installed programs/libraries:

  • Rtools

  • R (software)

  • Rcpp

2条回答
  •  长情又很酷
    2020-12-19 14:34

    The R on Windows FAQ says in Question 2.2:

    If you want to be able to build packages from sources, we recommend that you choose an installation path not containing spaces.

    Also see Question 2.16 of that FAQ. I am fairly certain that we also make that point repeatedly in the Rcpp documentation.

    Now, if you forgo the inline package, and try working in RStudio, then you might get around this (as there are more efforts to protect the $PATH with spaces).

    But in short, I would reinstall R into, say C:\R\R-$version as it is the only way to get default behaviour on all examples. And we have lots of them. It's worth reinstalling.

提交回复
热议问题