How to use a Schedule Run to execute both a Python and an R program at the same time. This is a pretty straightforward process that we will demonstrate here. Start by opening a new Workspace in a project of your choosing. We will create three files.
a.py
# Python File A #!/usr/bin/python import b import subprocess subprocess.call (["/usr/bin/Rscript", "--vanilla", "/mnt/a.R"])
b.py
#!/usr/bin/python print("hello from Python")
a.R
print("Hello from R!")
Make sure all these files exist within the same directory and then execute a.py and see the magic unfold.
Comments
0 comments
Please sign in to leave a comment.