我想安装dmetar包,使用pcurve()函数。
为了解决这个问题,我进行了如下测试:
1、使用命令安装
install.packages("dmetar")
但结果显示:
将程序包安装入‘C:/Users/small/AppData/Local/R/win-library/4.3’
(因为‘lib’没有被指定)
Warning in install.packages :
package ‘dmetar’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
2、使用R手册代码安装
devtools::install_github("MathiasHarrer/dmetar")
结果显示
Error: Failed to install 'dmetar' from GitHub:
! System command 'Rcmd.exe' failed
3、尝试使用手动安装
下载安装包,安装包连接:https://github.com/MathiasHarrer/dmetar.
安装代码
devtools::install("C:\\Users\\small\\Desktop\\dmetar-master")
结果显示
Error in `(function (command = NULL, args = character(), error_on_status = TRUE, …`:
! System command 'Rcmd.exe' failed
---
Exit status: -1
stdout & stderr: <printed>
---
Type .Last.error to see the more details.
我的系统环境
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8 LC_CTYPE=Chinese (Simplified)_China.utf8
[3] LC_MONETARY=Chinese (Simplified)_China.utf8 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8
time zone: Asia/Shanghai
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] miniUI_0.1.1.1 compiler_4.3.1 crayon_1.5.2 promises_1.2.0.1
[5] Rcpp_1.0.11 stringr_1.5.0 callr_3.7.3 later_1.3.1
[9] yaml_2.3.7 fastmap_1.1.1 mime_0.12 R6_2.5.1
[13] curl_5.0.1 knitr_1.43 htmlwidgets_1.6.2 tibble_3.2.1
[17] desc_1.4.2 profvis_0.3.8 rprojroot_2.0.3 shiny_1.7.4.1
[21] pillar_1.9.0 rlang_1.1.1 utf8_1.2.3 cachem_1.0.8
[25] stringi_1.7.12 httpuv_1.6.11 xfun_0.39 fs_1.6.3
[29] pkgload_1.3.2.1 memoise_2.0.1 cli_3.6.1 magrittr_2.0.3
[33] ps_1.7.5 digest_0.6.33 processx_3.8.2 rstudioapi_0.15.0
[37] xtable_1.8-4 remotes_2.4.2.1 devtools_2.4.5 lifecycle_1.0.3
[41] prettyunits_1.1.1 vctrs_0.6.3 evaluate_0.21 glue_1.6.2
[45] urlchecker_1.0.1 sessioninfo_1.2.2 pkgbuild_1.4.2 fansi_1.0.4
[49] rmarkdown_2.23 purrr_1.0.1 pkgconfig_2.0.3 usethis_2.2.2
[53] tools_4.3.1 ellipsis_0.3.2 htmltools_0.5.5
非常感谢您的帮助