petab_python_setup: Setup the connection to python petab

View source: R/PEtab.R

petab_python_setupR Documentation

Setup the connection to python petab

Description

  • if petab virtualenv not present:

    • sets up a virtualenv called "petab"

    • pip installs petab

  • uses "petab" virtual env

  • imports and returns petab

Usage

petab_python_setup(FLAGreturnpetabSelect = FALSE)

Arguments

FLAGreturnpetabSelect

Details

use as pe <- petab_python_setup()

If this function fails, try one of these:

  1. Restart RStudio from your terminal

  2. petab::petab_python_installPackages(TRUE)

  3. Recreate the *.Rproj file of your current project

Value

python module, see reticulate::import()

Author(s)

Daniel Lill (daniel.lill@physik.uni-freiburg.de)

See Also

Other pepy: pepy_sample_parameter_startpoints(), petab_python_installPackages()

Examples

pepy <- petab_python_setup()
# pepy$lint(pe)

peps <- petab_python_setup(FLAGreturnpetabSelect = TRUE)

dlill/petab documentation built on Oct. 9, 2022, 3:07 p.m.