R/install_beast2_pkg.R

Defines functions install_beast2_pkg

Documented in install_beast2_pkg

#' Install a BEAST2 package
#'
#' Install a BEAST2 package. If the package is already installed,
#' (see \link{is_beast2_pkg_installed}), this function \link{stop}s.
#'
#' @note Installing or uninstalling a BEAST2 package for a
#' (singular) BEAST2 installation, does so for all BEAST2
#' installations
#' @inheritParams default_params_doc
#' @return nothing. It does install the BEAST2 package
#' @author Richèl J.C. Bilderbeek
#' @examples
#' \dontrun{
#'   install_beast2_pkg("NS")
#' }
#' @export
install_beast2_pkg <- function(
  name,
  beast2_folder = beastier::get_default_beast2_folder(),
  verbose = FALSE,
  has_internet = curl::has_internet()
) {
  stop(
    "'mauricer::install_beast2_pkg' is deprecated, \n",
    "as it violated CRAN policy. \n",
    " \n",
    "To install BEAST2 packages from R, do: \n",
    " \n",
    "remotes::install_github(\"richelbilderbeek/mauricerinstall\") \n",
    "mauricerinstall::install_beast2_pkg(\"[your package here]\") \n"
  )
}

Try the mauricer package in your browser

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

mauricer documentation built on Aug. 12, 2022, 9:06 a.m.