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