Error when opening R

Hi R community,

I am not sure what I did, but now when I open R Studio I have the error message: Error: could not find function "option". This happens just by opening R and not doing anything. I tried already in other forums to search for an answer, but no luck.
Could someone please help me?

Thank you very much
Karen

image

Very likely you have edited your Rprofile.site file and you have included invalid code there, check the content.

Thank you! I fixed the Rprofile.site
Do you know if I can have more than one Rprofile.site for different workspaces? Or can I have only one Rprofile.site for all workspaces?

You can have one Rprofile.site file for each project, you just have to put it in your working directory and it is going to override the global one.

Great, thank you! I'll give it a try

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