mirror of
https://github.com/dylanbenzi/hurricane_normalization_app.git
synced 2026-07-29 21:01:27 +00:00
update queries to include mac directory
This commit is contained in:
@@ -5,10 +5,27 @@ library(dplyr)
|
||||
library(DBI)
|
||||
library(xts)
|
||||
|
||||
# local testing env setup
|
||||
os <- Sys.info()["sysname"]
|
||||
|
||||
linuxdir <- "/home/dylan/Personal/Projects/Hurricane Normalization/"
|
||||
macdir <- "~/Desktop/Personal/Projects/Hurricane Normalization/"
|
||||
#baseDir <- macdir
|
||||
baseDir <- linuxdir
|
||||
widir <- "E/..."
|
||||
|
||||
if (!is.null(os)) {
|
||||
if (grepl("darwin", os, ignore.case = T)) {
|
||||
cat("OS: Mac")
|
||||
baseDir <- macdir
|
||||
} else if (grepl("linux", os, ignore.case = T)) {
|
||||
cat("OS: Linux")
|
||||
baseDir <- linuxdir
|
||||
} else if (grepl("windows", os, ignore.case = T)) {
|
||||
cat("OS: Win")
|
||||
baseDir <- windir
|
||||
} else {
|
||||
cat("Cannot identify OS")
|
||||
}
|
||||
}
|
||||
|
||||
config <- config::get(
|
||||
file = paste0(baseDir, "R/dataScripts/restructured/app/config.yml")
|
||||
|
||||
Reference in New Issue
Block a user