This function initializes the 'python' environment for the package.
init_py(
py_ver = NULL,
dgpsi_ver = NULL,
reinstall = FALSE,
uninstall = FALSE,
verb = TRUE
)
No return value, called to install required 'python' environment.
a string that gives the 'python' version to be installed. If py_ver = NULL
, the default 'python'
version '3.9.13' will be installed.
a string that gives the 'python' version of 'dgpsi' to be used. If dgpsi_ver = NULL
,
the latest 'python' version of 'dgpsi' will be used, if the package is installed from CRAN;
the development 'python' version of 'dgpsi' will be used, if the package is installed from GitHub.
a bool that indicates whether to reinstall the 'python' version of 'dgpsi' specified
in dgpsi_ver
if it has already been installed. This argument is useful when the development version
of the R package is installed and one may want to regularly update the development 'python' version
of 'dgpsi'. Defaults to FALSE
.
a bool that indicates whether to uninstall the 'python' version of 'dgpsi' specified
in dgpsi_ver
if it has already been installed. This argument is useful when the 'python' environment
is corrupted and one wants to completely uninstall and reinstall it. Defaults to FALSE
.
a bool indicating if the trace information will be printed during the function execution.
Defaults to TRUE
.
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/.
if (FALSE) {
# See gp(), dgp(), or lgp() for an example.
}
Run the code above in your browser using DataLab