I have an rscript that communicates with an mlflow server. In order for my script to run successfully, I must run the following terminal command before communicating with the mlflow R api:
conda activate r-mlflow-1.17.0; pip3 install boto3"
From within rstudio in the terminal pane, when I paste this, there's no complaints and everything works. I wanted to do the equivalent from the top of my script so that I wouldn't forget. But, when I do this equivilent from within R I get:
system("conda activate r-mlflow-1.17.0; pip3 install boto3")
sh: 1: conda: not found
sh: 1: pip3: not found
error in running command
Why does this line of code work directly in the terminal pane in rstudio but not from within R using the system()
fucntion?