Source or Source as local job

Hello,
I am running a code that has packages from mlr3. If I restart the session each time and run the code line by line, it works fine. But if I source the code or source as local job or even run it in terminal as Rscript it gives error. Both R and Rstudio are from same path and libraries are stored in the same path too. I would appreciate any help.

Thanks!

Are you specifying the Rscript path in the header of your R script? Something like this

#! /usr/bin/env Rscript

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.