Skip to content

Commit

Permalink
added section on gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
collinschwantes committed Jan 9, 2024
1 parent b7fde2c commit bf61279
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dependencies.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,17 @@ project](http://ropenscilabs.github.io/r-docker-tutorial/)

- R packages can be a useful project output. We have some in-house R packages to provide access to internal data and generate reports, and may be developing more for external audiences. Hadley Wickham's [R Packages Book](http://r-pkgs.had.co.nz/) provides guidance for these, and we expect our packages to be up to [rOpenSci standards](https://github.com/ropensci/onboarding).

## GCC and mac silicon

For some reason mac computers with mac silicon (e.g. M2 chip) have issues with
c compilers. Use the following to ensure your mac knows which c compiler to use.

```
CXX14FLAGS += -O3 -arch arm64 -ftemplate-depth-256
FC = /opt/homebrew/Cellar/gcc/13.2.0/bin/gfortran
F77 = /opt/homebrew/Cellar/gcc/13.2.0/bin/gfortran
FLIBS = -L/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/13
```

##
Historically some projects used [Packrat](https://rstudio.github.io/packrat/) or [checkpoint](https://CRAN.R-project.org/package=checkpoint) to fix R package versions. These systems have been superceded by `renv`.

0 comments on commit bf61279

Please sign in to comment.