tests/testthat/resources/import-test.R

library(reticulate)
options(reticulate.logModuleLoad = TRUE)
reticulate::py_run_string("from matplotlib import pyplot as plt")
rstudio/reticulate documentation built on Oct. 29, 2024, 8:07 a.m.