Skip to content

Commit

Permalink
skip reading .env when running in desktop mode
Browse files Browse the repository at this point in the history
to prevent `.env` from overriding/conflicting with the desired "desktop" config
  • Loading branch information
cjyetman authored Feb 11, 2024
1 parent 0dc1012 commit c5ca585
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run_pacta_data_preparation.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ suppressPackageStartupMessages({

# config -----------------------------------------------------------------------

readRenviron(".env")
if (Sys.getenv("R_CONFIG_ACTIVE") != "desktop") {
readRenviron(".env")
}

config <-
config::get(
Expand Down

0 comments on commit c5ca585

Please sign in to comment.