作者:_______王晓 | 来源:互联网 | 2023-09-25 09:58
I am looking for a way to test if R is being run from RStudio. For some reason I could find the answer on google yesterday but not today, but I think it had to do with testing if a certain system variable was set.
我正在寻找一种方法来测试R是否从RStudio运行。出于某种原因,我可以在昨天找到谷歌的答案但不是今天,但我认为这与测试是否设置了某个系统变量有关。
9 个解决方案