-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing from source fails for arm64-based Macs (M1) #862
Comments
I think this is arguably an issue in Rcpp, that only occurs if your package happens to be installed into a path that contains spaces. What is the output of:
for you? For what it's worth, the latest versions of
which likely would work fine in this case. |
I've filed an issue + PR in Rcpp that I think will resolve this issue. In the meantime, I think you'll need to migrate the |
@kevinushey thanks a lot for addressing this so quickly (as you always do - really appreciating it!) I've checked and seems like you're right about the spaces:
Still using Just to mention this once more, though: the problem did in fact NOT occur anymore after switching to the latest arm64-based version of R as I outlined above. |
@kevinushey stupid question: how do I actually make |
I think one solution would be to move the cache to the "new" location, and leave a symlink at the "old" location pointing to the new one. For example, in R:
This way, older projects using the old cache location could still "see" it using their existing symlinks, but paths would resolve to the "new" path without spaces. |
As an aside, the reason why installation of |
I ran your code from above and it went through just fine. But do I need to tell Because when I run
And
Update 2021-11-12 11:10I read through https://rstudio.github.io/renv/reference/paths.html and went with setting
|
@kevinushey re: |
That above issue is unexpected to me -- let me see if I can figure out why that is happening.
This is the other alternative, and is the generally recommended approach if you need finer-grained control over where
I believe you'd see |
I think I've fixed the above issue in the development version of |
and set cache to avoid path with spaces see rstudio/renv#862
I just wanted to thank you @rappster - was able to use your instructions to set up R/R studio and my project after a frustrating morning setting up my new Mac. |
Running `renv::install("scrypt") fails with the following error message
I also tried it outside of
renv
viainstall.packages("scrypt", type = "source")
andR CMD install --build scrypt
and both worksUpdate 2021-11-11 15:50
I switched my R version from the one installable via
brew install r
to the latest RC from https://mac.r-project.org/#nightly (4.1.2 RC) and now `renv::install("scrypt") runs smoothlySystem info
brew install r
(as of 2021-11-06)~/.R/Makevars
used (as was still necessary a couple of weeks ago for other packages; see this issue)The text was updated successfully, but these errors were encountered: