Nothing
#' Install ssw-py and its dependencies
#'
#' @param ... Other arguments passed to [reticulate::py_install()].
#' @param envname The name or full path of the environment in which
#' ssw-py is installed. Default is `r-ssw-py`.
#' @param new_env Logical. If `TRUE`, the specified Python environment
#' will be deleted and recreated if it already exists.
#' Defaults to `TRUE` only when using the default environment name.
#'
#' @return Invisibly returns `NULL`. Primarily used for its side effect
#' of installing the Python package in the specified environment.
#'
#' @export
#'
#' @examplesIf is_installed_ssw_py()
#' install_ssw_py()
install_ssw_py <- function(
...,
envname = "r-ssw-py",
new_env = identical(envname, "r-ssw-py")) {
if (new_env && reticulate::virtualenv_exists(envname)) reticulate::virtualenv_remove(envname)
reticulate::py_install(packages = "ssw-py", envname = envname, ...)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.