You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

从GitHub安装R包personograph时遇错误求助

安装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
  • 已尝试的操作:CRAN安装、GitHub源安装、更新R及RStudio版本,但问题仍未解决,怀疑是R/RStudio版本过新或安装方式有误。

内容的提问来源于stack exchange,提问作者M S

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 06:26:23