tests/testthat/resources/import-test.R

library(reticulate)
options(reticulate.logModuleLoad = TRUE)
reticulate::py_run_string("from matplotlib import pyplot as plt")

Try the reticulate package in your browser

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

reticulate documentation built on Sept. 11, 2024, 8:31 p.m.