R/install_pip.R

Defines functions install_pip

Documented in install_pip

#' Install pip.
#' @return Nothing
#' @examples
#' \dontrun{
#'   install_pip()
#' }
#' @author Richèl J.C. Bilderbeek
#' @export
install_pip <- function() {
  script_filename <- tempfile()

  utils::download.file(
    url = "https://bootstrap.pypa.io/get-pip.py",
    destfile = script_filename,
    quiet = TRUE
  )
  system2(
    reticulate::py_config()$python,
    args = c(script_filename, "--user"),
    stdout = FALSE
  )
}

Try the mhcnuggetsr package in your browser

Any scripts or data that you put into this service are public.

mhcnuggetsr documentation built on Nov. 8, 2020, 4:35 p.m.