Skip to content

Commit

Permalink
fix waiting for source
Browse files Browse the repository at this point in the history
  • Loading branch information
gisma committed Jun 1, 2024
1 parent 040a5ce commit 6bedaeb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions R/initProj.R
Original file line number Diff line number Diff line change
Expand Up @@ -406,13 +406,17 @@ addGitFolders <- function(folders, git_repository = NULL, git_subfolders = NULL)
#' # loadLibraries(libs = C("link2GI"))
#' }
loadLibraries <- function(libs) {
options(install.packages.check.source = "no")

success <- lapply(libs, function(l) {
if (!l %in% utils::installed.packages()) {
utils::install.packages(l)
}
require(l, character.only = TRUE)
})
names(success) <- libs
options(install.packages.check.source = "yes")

return(success)
}

Expand Down
2 changes: 1 addition & 1 deletion inst/templates/config-default-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ base:
create_folders: true
files: [ "src/pre-processing.R", "src/post-processing.R", "src/10-processing.R", "src/functions/000_setup.R" ,"src/main-control.R"]
baseSpatial:
dataFolder: ["level0", "level1", "level2", "run" ,"aux"]
dataFolder: ["level0", "level1", "level2", "run" ,"rawdata"]
docsFolder: [ "figures"]
tmpFolder: ["tmp"]
code_subfolder: ["src", "src/functions" , "src/configs"]
Expand Down
4 changes: 2 additions & 2 deletions man/createFolders.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6bedaeb

Please sign in to comment.