尝试上传到 RPubs 时 .Rprofile 文件出现问题
Issue with .Rprofile file when trying to upload to RPubs
据我所知,将 Rpub 上传到 RStudio 时存在一个有据可查的问题。解决方案是创建一个 .Rprofile 并添加一行:
options(rpubs.upload.method = "internal")
然后将.Rprofile 文件放入您的工作目录,并重新启动程序。我的问题是,当我尝试此操作并启动 RStudio 时,出现错误:
Error in assign(".popath", popath, .BaseNamespaceEnv) :
cannot change value of locked binding for '.popath'
任何人都可以指出我可能做错了什么吗?我错过了什么?
仔细阅读 http://rstudio-pubs-static.s3.amazonaws.com/25030_8e9c9ffc3b3c423d9381d81543423502.html
即可找到解决方案
"Put in options(rpubs.upload.method = “internal”) and no other text at all"。这意味着这行代码是 .Rprofile 文件中唯一存在的代码。
之前我一直在将此行添加到其余 Rprofile 文本的副本中。不必要的代码是罪魁祸首。
据我所知,将 Rpub 上传到 RStudio 时存在一个有据可查的问题。解决方案是创建一个 .Rprofile 并添加一行:
options(rpubs.upload.method = "internal")
然后将.Rprofile 文件放入您的工作目录,并重新启动程序。我的问题是,当我尝试此操作并启动 RStudio 时,出现错误:
Error in assign(".popath", popath, .BaseNamespaceEnv) :
cannot change value of locked binding for '.popath'
任何人都可以指出我可能做错了什么吗?我错过了什么?
仔细阅读 http://rstudio-pubs-static.s3.amazonaws.com/25030_8e9c9ffc3b3c423d9381d81543423502.html
即可找到解决方案"Put in options(rpubs.upload.method = “internal”) and no other text at all"。这意味着这行代码是 .Rprofile 文件中唯一存在的代码。
之前我一直在将此行添加到其余 Rprofile 文本的副本中。不必要的代码是罪魁祸首。