Skip to content
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

Package Installation #43

Closed
matthewgson opened this issue Dec 21, 2020 · 2 comments
Closed

Package Installation #43

matthewgson opened this issue Dec 21, 2020 · 2 comments

Comments

@matthewgson
Copy link

I'd like to share my temporary fix to install lfe on my Mac (Big Sur). Hope the issue #41 is resolved soon.

First, make sure if 1) Xcode command line tools and 2) gfortran are installed.
For Mac users, please refer to GNU Fortran compiler at https://mac.r-project.org/tools/

Then build archived package from source using

install.packages("https://cran.r-project.org/src/contrib/Archive/lfe/lfe_2.8-5.1.tar.gz", repos=NULL, type='source') 

You might have to manually install dependent packages first.

install.packages(c('Formula','xtable','sandwich'))
@grantmcdermott
Copy link
Contributor

Nice, but FWIW: MRAN takes daily snapshots of CRAN. So you can install an archived package binaries without all of the extra scaffolding needed for compiling from source on Mac (Xcode etc). E.g. The following should suffice:

install.packages('lfe', repos='https://mran.microsoft.com/snapshot/2020-12-01/', dependencies=TRUE))

@matthewgson
Copy link
Author

Back to CRAN, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants