Skip to content

Commit

Permalink
♻️ - update packages to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanocoretta committed Jun 18, 2021
1 parent ce292ed commit 6445f40
Show file tree
Hide file tree
Showing 2 changed files with 223 additions and 182 deletions.
43 changes: 21 additions & 22 deletions .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,32 @@ source("renv/activate.R")
# If the directory ~/EWA/ does not exist, it is created and the EMU-webAPP is
# downloaded in it.

# Fixed in emuR 2.3.0
# This is needed because emuR overrides options at loading.
library(emuR)

ewa_dir <- file.path(Sys.getenv("HOME"), "EWA")
ewa_git <- file.path(ewa_dir, ".git")

if (!dir.exists(ewa_git)) {
cat(crayon::yellow("x Local EMU-webApp not found. Downloading now!\n"))
dir.create(ewa_dir, showWarnings = F)
git2r::clone(
url = "https://github.com/IPS-LMU/EMU-webApp.git",
local_path = ewa_dir,
branch = "gh-pages"
)
} else {
cat(crayon::green("✓ Local EMU-webApp found! Setting as default now!\n"))
}



# library(emuR)

# Don't use local emu-WebApp
# ewa_dir <- file.path(Sys.getenv("HOME"), "EWA")
# ewa_git <- file.path(ewa_dir, ".git")
#
# if (!dir.exists(ewa_git)) {
# cat(crayon::yellow("x Local EMU-webApp not found. Downloading now!\n"))
# dir.create(ewa_dir, showWarnings = F)
# git2r::clone(
# url = "https://github.com/IPS-LMU/EMU-webApp.git",
# local_path = ewa_dir,
# branch = "gh-pages"
# )
# } else {
# cat(crayon::green("✓ Local EMU-webApp found! Setting as default now!\n"))
# }
#
# Set EMU-webApp directory ----
#
# The following sets the directory from which the EMU-webApp is launched to
# ~/EWA/.

options(emuR.emuWebApp.dir = ewa_dir)
#
# options(emuR.emuWebApp.dir = ewa_dir)



Expand All @@ -41,7 +40,7 @@ options(emuR.emuWebApp.dir = ewa_dir)
alb_ipa <- "./data/alb-ipa_emuDB"

cat(crayon::green("✓ Loading alb-ipa_emuDB...\n"))
alb_ipa_db <- load_emuDB(alb_ipa)
alb_ipa_db <- emuR::load_emuDB(alb_ipa)



Expand Down
Loading

0 comments on commit 6445f40

Please sign in to comment.