Join GitHub today
Run custom function with input #315
Is it possible to use reticulate to run custom python script that require user input directly from R?
say I have a function called plotcustomgraph.py that requires a csv file as input and writes out a pdf, is it somehow possible to call this function from within R using reticulate?
No, you would write a Python function, source the script containing the function, then call the function from R. See https://rstudio.github.io/reticulate/articles/calling_python.html#sourcing-scripts