有人编写了一个包(我们称之为“东西”),它严重依赖于Rstudio来工作,包括需要rstudioapi库。它有一个依赖于rstudioapi::askForPassword("Enter your pw")函数的身份验证例程。
如果我运行安装例程,它会引发这样的错误:
> setup_thing()
Thanks for downloading Thing, the custom R package for things.
Loading required package: rstudioapi
Error: RStudio not running我试图避免重写整个库;是否有方法在RStudio中安装和设置包,但使用R配置的实例?
发布于 2018-04-04 01:35:07
不幸的是,我认为答案是否定的。但这附近可能有工作。你调查过cronR?https://cran.r-project.org/web/packages/cronR/README.html吗?
您可能会在Rstudio本身内安排作业。
https://stackoverflow.com/questions/49640111
复制相似问题