Skip to content

Commit

Permalink
ignore_installed when installing the development version
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardn committed Aug 29, 2024
1 parent 67ab629 commit 2426fcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,19 @@ install_pharmpy <- function(envname='r-reticulate', method='auto') {
#'
#' @importFrom utils packageVersion
install_pharmpy_devel <- function(envname='r-reticulate', method='auto', version='devel') {
ignore_installed <- FALSE
if (version == 'latest') {
pharmpy_to_install <- 'pharmpy-core'
} else if (version == 'devel') {
PHARMPY_COMMIT <- "d94f63dc63417b6824267680ba6216c1d8e6551c"
pharmpy_to_install <- paste0('git+https://github.com/pharmpy/pharmpy.git@', PHARMPY_COMMIT)
ignore_installed <- TRUE
} else {
if (version == 'same') {
version <- packageVersion('pharmr')
}
pharmpy_to_install <- paste('pharmpy-core', version, sep='==')
}
reticulate::py_install(pharmpy_to_install, envname=envname, method=method, pip=T)
reticulate::py_install(pharmpy_to_install, envname=envname, method=method, pip=T, pip_ignore_installed=ignore_installed)
}

0 comments on commit 2426fcf

Please sign in to comment.