Set TZDIR on M1 only, update installation for M1s

JulioV 2 years ago
parent 135ebb2478
commit 12fffb9c63
  1. 3
  2. 8
  3. 4

@ -230,6 +230,7 @@
In RAPIDS v0.1.0 we replaced `RMySQL` R package with `RMariaDB`, this error means your R virtual environment is out of date, to update it run `snakemake -j1 renv_restore`
## Unrecognized output timezone "America/New_York"
???+ failure "Problem"
When running RAPIDS with R 4.0.3 on MacOS on M1, lubridate may throw an error associated with the timezone.
@ -241,6 +242,7 @@
This is because R timezone library is not set. Please add `Sys.setenv(“TZDIR” = file.path(R.home(), “share”, “zoneinfo”))` to the file active.R in renv folder to set the timezone library. For further details on how to test if `TZDIR` is properly set, please refer to ``.
## Unimplemented MAX_NO_FIELD_TYPES
???+ failure "Problem"
You get the following error when downloading Fitbit data:
@ -251,6 +253,7 @@
At the moment RMariaDB [cannot handle]( MySQL columns of JSON type. Change the type of your Fitbit data column to `longtext` (note that the content will not change and will still be a JSON object just interpreted as a string).
## Running RAPIDS on Apple Silicon M1 Mac
???+ failure "Problem"
You get the following error when installing pandoc or running rapids:

@ -48,7 +48,13 @@ You can install RAPIDS using Docker (the fastest), or native instructions for Ma
If you installed RAPIDS using Docker for Windows on Windows 10, the container will have [limits]( on the amount of RAM it can use. If you find that RAPIDS crashes due to running out of memory, [increase]( this limit.
=== "MacOS"
We tested these instructions in Catalina
We tested these instructions in Catalina and Big Sur
??? info "M1 Macs"
RAPIDS can run on M1 Macs, the only changes as of Feb 21, 2021 are:
- R needs to be installed via brew under Rosetta (x86 arch) due to incompatibility issues with some R libraries. To do this, run your terminal [via Rosetta](, then proceed with the usual brew installation command. Use x86 brew to install R and restore RAPIDS' packages (`snakemake -j1 renv_install & snakemake -j1 renv_restore`).
- There is a bug related to timezone codes. We set the correct `TZ_DIR` in `renv/activate.R` (line #19) `Sys.setenv("TZDIR" = file.path(R.home(), "share", "zoneinfo"))` (RAPIDS does this automatically).
1. Install [brew](

renv/activate.R vendored

@ -15,8 +15,8 @@ local({
Sys.setenv("RENV_R_INITIALIZING" = "true")
on.exit(Sys.unsetenv("RENV_R_INITIALIZING"), add = TRUE)
# Uncomment the line below line if you are using an M1 Mac
# Sys.setenv("TZDIR" = file.path(R.home(), "share", "zoneinfo"))
if(grepl("Darwin",["sysname"], fixed = TRUE) & grepl("ARM64",["version"], fixed = TRUE)) # M1 Macs
Sys.setenv("TZDIR" = file.path(R.home(), "share", "zoneinfo"))
# signal that we've consented to use renv
options(renv.consent = TRUE)