How do I run an R script in Python?
Answer
Executing an R Script from Python
To execute this from Python we make use of the subprocess module, which is part of the standard library. We will be using the function,
check_output
to call the R script, which executes a command and stores the output of stdout.
Answer
Executing an R Script from Python
To execute this from Python we make use of the subprocess module, which is part of the standard library. We will be using the function,
check_output
to call the R script, which executes a command and stores the output of stdout.