为什么在 R Studio 中安装 devtools 时总是出现错误?

问题描述 投票:0回答:0

在 ubuntu 22 和 R Studio 的终端中运行许多命令后,我设法安装了 devtools 包。问题是在运行命令 dev_mode(on=T) 后,我收到以下错误:错误:[ENOENT] 无法实现“/home/user/R-dev”:没有这样的文件或目录。我找不到解决这个问题的方法。我已将 R Studio 更新到最新版本...有人知道我该如何解决这个问题吗?谢谢!

我运行了几个命令,但都是徒劳的。

编辑:感谢您的回复。因此,我需要按照以下步骤安装 AnnotationBustR 包(https://cran.r-project.org/web/packages/AnnotationBustR/vignettes/AnnotationBustR-vignette.html):devtools 的错误较旧不是从现在开始,而是现在我真的需要安装 AnnotationBustR 包,所以我必须解决它。运行时出现错误:dev_mode(on=T)。

> sessionInfo()
R version 4.2.3 (2023-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.2 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=ro_RO.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=ro_RO.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=ro_RO.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=ro_RO.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] devtools_2.4.5 usethis_2.1.6 

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.10       rstudioapi_0.14   magrittr_2.0.3    pkgload_1.3.2     xtable_1.8-4     
 [6] R6_2.5.1          rlang_1.1.0       fastmap_1.1.1     urlchecker_1.0.1  stringr_1.5.0    
[11] tools_4.2.3       pkgbuild_1.4.0    sessioninfo_1.2.2 miniUI_0.1.1.1    cli_3.6.1        
[16] remotes_2.4.2     htmltools_0.5.5   ellipsis_0.3.2    digest_0.6.31     lifecycle_1.0.3  
[21] crayon_1.5.2      processx_3.8.0    shiny_1.7.4       purrr_1.0.1       callr_3.7.3      
[26] later_1.3.0       htmlwidgets_1.6.2 profvis_0.3.7     vctrs_0.6.1       fs_1.6.1         
[31] promises_1.2.0.1  ps_1.7.4          memoise_2.0.1     glue_1.6.2        cachem_1.0.7     
[36] mime_0.12         stringi_1.7.12    compiler_4.2.3    prettyunits_1.1.1 httpuv_1.6.9  
r devtools
© www.soinside.com 2019 - 2024. All rights reserved.