Skip to content

Commit

Permalink
Set a PHARMPY_COMMIT variable for devel install
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardn committed Aug 27, 2024
1 parent 55c2483 commit c65da44
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions R/install.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"d94f63dc63417b6824267680ba6216c1d8e6551c"
PHARMPY_COMMIT <- .Last.value

#' @title
#' Install Pharmpy
#'
Expand All @@ -24,11 +27,12 @@ install_pharmpy <- function(envname='r-reticulate', method='auto') {
#' @param version (str) which pharmpy version to use (use 'same' for most cases)
#'
#' @importFrom utils packageVersion
install_pharmpy_devel <- function(envname='r-reticulate', method='auto', version='same') {
install_pharmpy_devel <- function(envname='r-reticulate', method='auto', version='devel') {
if (version == 'latest') {
pharmpy_to_install <- 'pharmpy-core'
}
else {
} else if (version == 'devel') {
pharmpy_to_install <- paste0('git+https://github.com/pharmpy/pharmpy.git@', PHARMPY_COMMIT)
} else {
if (version == 'same') {
version <- packageVersion('pharmr')
}
Expand Down

0 comments on commit c65da44

Please sign in to comment.