简体   繁体   English

R package:NAMESPACE 文件“不可读”

[英]R package: NAMESPACE file is "not readable"

I have made some updates to my R package (named xrfr), and when I tried to run devtools::check() it told me that the NAMESPACE file is not readable.我对我的 R package(名为 xrfr)进行了一些更新,当我尝试运行devtools::check()时,它告诉我 NAMESPACE 文件不可读。 I have updated R and all my installed packages, and I have deleted the old NAMESPACE file to create a new one with devtools::document() , but I still get this error.我已经更新了 R 和所有我安装的软件包,并且我已经删除了旧的 NAMESPACE 文件以使用devtools::document()创建一个新文件,但我仍然收到此错误。 I did move the package from my computer to my workplace's server, but that has not been a problem otherwise, so I do not believe that is the reason.我确实将 package 从我的计算机移到了我工作场所的服务器上,但这不是问题,所以我不相信这是原因。

Here is the error:这是错误:

> devtools::document()
i Updating xrfr documentation
i Loading xrfr
Writing NAMESPACE
Error: The specified file is not readable: myfolders\xrfr\NAMESPACE

Does anyone have an idea why?有谁知道为什么? Thanks谢谢

I also want to confirm the same problem in my environment.我也想在我的环境中确认同样的问题。 When I kept my development folder in a network drive, I had the same error for the NAMESPACE not being readable as agryt had.当我将开发文件夹保存在网络驱动器中时,我遇到了与agyt一样无法读取NAMESPACE的相同错误。 And then when I moved the entire folder to a local drive, the problem disappeared.然后当我将整个文件夹移动到本地驱动器时,问题就消失了。 I also had write permission on the network drive, but there is probably another reason related to the network drive use.我对网络驱动器也有写权限,但可能还有另一个与网络驱动器使用有关的原因。

I am using devtools version 2.4.3.我正在使用 devtools 版本 2.4.3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM