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

adding system dependencies #113

Merged
merged 3 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/bookdown_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
- name: Install libgit2
run: sudo apt install libgit2-dev

- name: Install system dependencies
run: |
sh sys_deps/sys_deps.sh

- name: Cache bookdown results
uses: actions/cache@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions dependencies.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ 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

- R package installation can be especially tricky on Mac computers with [Apple Silicon](https://support.apple.com/en-us/HT211814). Below are some steps to get
package install set ups.

Expand All @@ -40,4 +43,5 @@ FLIBS = -L/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/13
configure.args = "--with-udunits2-lib=/opt/homebrew/Cellar/udunits/2.2.28/lib --with-udunits2-include=/opt/homebrew/Cellar/udunits/2.2.28/include")`


##
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`.
9 changes: 9 additions & 0 deletions sys_deps/sys_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apt-get update && apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libssl-dev \
git-crypt \
libudunits2-dev \
libgdal-dev \
libgeos-dev \
libproj-dev \
libglpk-dev