【发布时间】:2023-03-11 03:40:01
【问题描述】:
我正在使用 roxygen2,但由于某种原因,我无法让它运行。
我试过了:
> devtools::load_all()
> devtools::document()
导致:
Updating xxxx documentation
Loading xxxx
First time using roxygen2. Upgrading automatically...
Writing NAMESPACE
Error in file(con, "r") : cannot open the connection
In addition: Warning message: In file(con, "r") : cannot open file
'C:\Users\xxxxxxx': Permission denied
我也试过了:
> roxygen2::roxygenise()
屈服:
Loading xxxx
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'C:\Users\xxxxxxxx': Permission denied
我尝试安装 6.1.0 和 6.0.1 版本的 roxygen,结果相同。 有什么解决办法吗?谢谢。
(注)以下是我的会话信息:
>sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United
States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] stringi_1.2.4 usethis_1.3.0 glue_1.3.0 git2r_0.23.0
RCurl_1.95-4.11
[6] bitops_1.0-6 rlang_0.2.1 testthat_2.0.0 roxygen2_6.1.0
devtools_1.13.6
loaded via a namespace (and not attached):
[1] Rcpp_0.12.18 digest_0.6.15 withr_2.1.2 commonmark_1.5 R6_2.2.2
[6] backports_1.1.2 magrittr_1.5 rstudioapi_0.7 xml2_1.2.0
tools_3.5.1
[11] stringr_1.3.1 yaml_2.2.0 compiler_3.5.1 memoise_1.1.0
【问题讨论】:
-
您是否检查了文件的权限?
-
是的。我有管理权限。
-
试试
roxygenise(clean=TRUE)。 -
不行;相同的警告信息。
标签: r installation devtools roxygen2