Copy sklearn Codes to Path
rpwf_cp_py_codes.Rd
These python codes are needed to work with the database. After copying the
codes with rpwf_cp_py_codes()
, navigate to the "rpwf" folder and run
python -m pip install -e .
to install the codes as a local python package.
Remove the python codes with pip uninstall local-rpwf
.
Arguments
- board
a
{pins}
board object.- overwrite
overwriting the copied python codes or not. Default to
FALSE
.
Examples
tmp_dir <- tempdir()
rpwf_cp_py_codes(tmp_dir)
#> creating folder 'rpwf' under provided root path
#> [1] TRUE
list.files(paste0(tmp_dir, "/rpwf"), recursive = TRUE)
#> [1] "rpwf/__init__.py" "rpwf/database.py"
#> [3] "rpwf/rpwf.py" "rpwf/script/__init__.py"
#> [5] "rpwf/script/cross_validation.py" "rpwf/script/nested_resampling.py"
#> [7] "setup.cfg" "setup.py"