Skip to content

Commit

Permalink
Merge pull request #26 from jasenfinch/devel
Browse files Browse the repository at this point in the history
v0.6.2
  • Loading branch information
jasenfinch committed Mar 29, 2023
2 parents 4a0d407 + 5bb982b commit e8da905
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: projecttemplates
Title: Project Templates for Reproducible Research and Analyses
Version: 0.6.1
Version: 0.6.2
Authors@R:
person(given = "Jasen",
family = "Finch",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# projecttemplates 0.6.2

* Fix for [`renv`](https://rstudio.github.io/renv/index.html) when Bioconductor dependencies are included in argument `dependencies`.

# projecttemplates 0.6.1

* Added the `sandbox` argument to `renvInitialise()` to allow the selection of whether sandboxing is used during [`renv`](https://rstudio.github.io/renv/index.html) initialisation.
Expand Down
16 changes: 14 additions & 2 deletions R/renv.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,20 @@ renvInitialise <- function(project_directory,
bare = TRUE)

if (length(dependencies) > 0) {
renv::install(dependencies,project = project_directory)
}

if (!isFALSE(bioconductor)){
dependencies <- c(
'BiocManager',
dependencies
)
}

lapply(
dependencies,
function(x,project_directory){renv::install(x,project = project_directory)},
project_directory = project_directory
)
}

renv::hydrate(project = project_directory)

Expand Down

0 comments on commit e8da905

Please sign in to comment.