Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

renv::restore() failing to restore project library #3

Closed
mtwente opened this issue Jan 16, 2024 · 0 comments
Closed

renv::restore() failing to restore project library #3

mtwente opened this issue Jan 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Mac OS

Comments

@mtwente
Copy link
Owner

mtwente commented Jan 16, 2024

Current Behavior

Running renv::restore() to set up the package environment for running the pipeline is not working as expected on macOS Sonoma 14.2.1.

Reproduction / Steps To Reproduce

  • open R project using a recent Mac OS
  • run renv::restore()
  • renv downloads recorded packages successfully
  • compilation fails with this output:
ld: warning: search path '/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0' not found
ld: warning: search path '/opt/gfortran/lib' not found
ld: library 'gfortran' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Matrix.so] Error 1
ERROR: compilation failed for package ‘Matrix’
* removing ‘/Users/[username]/github/nordatlantisk-ft/renv/staging/1/Matrix’
install of package 'Matrix' failed [error code 1]

Solution: Manually install a Fortran compiler (and Xcode, if not already done), see https://cran.r-project.org/bin/macosx/tools/

Anything else?

No response

@mtwente mtwente added bug Something isn't working Mac OS labels Jan 16, 2024
@mtwente mtwente self-assigned this Jan 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working Mac OS
Projects
None yet
Development

No branches or pull requests

1 participant