从GitHub安装R包personograph时遇错误求助
- 尝试从CRAN安装曾上线的R包
personograph,安装失败后改用GitHub源安装,执行代码:install.packages("devtools") devtools::install_github("joelkuiper/personograph") - 安装过程中出现以下错误:
Error in install.packages : Updating loaded packages
Downloading GitHub repo joelkuiper/personograph@HEAD
── R CMD build ─────────────────────────────────────────────────────────────────────────────
✔ checking for file 'C:\Users-\AppData\Local\Temp\RtmpU9Efwx\remotes3644595027e1\joelkuiper-personograph-b3249af/DESCRIPTION' (463ms)
─ preparing 'personograph': (353ms)
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Omitted 'LazyData' from DESCRIPTION
─ building 'personograph_0.1.3.tar.gz'Installing package into ‘C:/Users/-/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)- installing source package 'personograph' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in x > 0 && rounded == 0 : 'length = 5' in coercion to 'logical(1)'
Error: unable to load R code in package 'personograph'
Execution halted
ERROR: lazy loading failed for package 'personograph' - removing 'C:/Users/-/AppData/Local/R/win-library/4.3/personograph'
Warning: installation of package ‘C:/Users/-/AppData/Local/Temp/RtmpU9Efwx/file3644413f3ae3/personograph_0.1.3.tar.gz’ had non-zero exit status
- installing source package 'personograph' ...
- 已尝试的操作:CRAN安装、GitHub源安装、更新R及RStudio版本,但问题仍未解决,怀疑是R/RStudio版本过新或安装方式有误。
内容的提问来源于stack exchange,提问作者M S

