Open therneau opened 2 years ago
We don't have an official mailing list, but I think questions at https://community.rstudio.com/ (under the reticulate
tag) would be welcomed.
That said, usually you'll just need something like:
pySuStaIn <- import("pySuStaIn")
setup <- pySuStaIn$abc_int(...)
result <- setup$abc_fit()
That is, after you've imported the Python module, you'll be able to use it and call its methods as though it were a "regular" R object with some functions.
Thank you sir, it worked like a charm.
I have a "how to do this with reticulate" issue, much more appropriate for a mailing list than here, but I haven't been able to locate the right place. Any hints?
Terry Therneau
Here is the question, BTW. I'm trying to interface to a python package (pySuStaIn) which has the following setup for a particular model, call it the "abc" method. setup = abc_int(data, parameter1, parameter2, parameter3, parameter4, parameter5) result = setup.abc_fit()
How do I call this from R?