gpt4 book ai didi

r - Devtools Install_github 对于 Reprtree 失败

转载 作者:行者123 更新时间:2023-12-02 16:21:59 26 4
gpt4 key购买 nike

查遍了整个互联网,但没有找到解决方案。

现在已经为这个问题苦苦挣扎了几个小时。

library(devtools)
install_github("araastat/reprtree")

但我每次都会收到错误(尝试了多种方法,例如重新启动、关闭我的 VPN)。

Installation failed: Command failed (1)
Warning message:
S3 methods ‘[.git_tree’, ‘as.POSIXct.git_time’, ‘as.character.git_time’, ‘as.data.frame.git_commit’,

‘as.data.frame.git_repository’, ‘as.data.frame.git_tree’, ‘as.list.git_tree’, ‘diff.git_repository’, ‘diff.git_tree’, ‘format.git_blob’, ‘format.git_commit’, ‘format.git_merge_result’, ‘format.git_note’, ‘format.git_signature’, ‘format.git_tag’, ‘head.git_repository’, ‘length.git_blob’, ‘length.git_diff’, ‘length.git_tree’, ‘merge.character’, ‘merge.git_branch’, ‘merge.git_repository’, ‘plot.git_repository’, ‘print.git_blob’, ‘print.git_branch’, ‘print.git_commit’, ‘print.git_config’, ‘print.git_diff’, ‘print.git_merge_result’, ‘print.git_note’, ‘print.git_reference’, ‘print.git_reflog’, ‘print.git_reflog_entry’, ‘print.git_repository’, ‘print.git_signature’, ‘print.git_status’, ‘print.git_tag’, ‘print.git_time’, ‘print.git_tree’, ‘sha.git_blob’, ‘sha.git_branch’, ‘sha.git_commit’, ‘sha.git_fetch_head’, ‘sha.git_merge_result’, ‘sha.git_note’, ‘sha.git_reference’, ‘sha.git_reflog_entry’, [... truncated]

编辑。另一种方法(如评论中提到的)

devtools::install("reprtree-master")

Installing reprtree
"C:/PROGRA~1/R/R-34~1.4/bin/i386/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
"C:/Users/asdf/Downloads/reprtree-master" --library="C:/Users/asdf/Documents/R/win-library/3.4" --install-tests

* installing *source* package 'reprtree' ...
** R
** preparing package for lazy loading
** help
*** installing help indices
converting help for package 'reprtree'
finding HTML links ... done
ReprTree html
finding level-2 HTML links ... done

plot.getTree html
plot.reprtree html
reprtree-package html
snip.depth html
text.tree html
Error: C:/Users/asdf/Downloads/reprtree-master/man/text.tree.Rd:41: Bad \link text
* removing 'C:/Users/asdf/Documents/R/win-library/3.4/reprtree'
In R CMD INSTALL
Error: Command failed (1)
>

最佳答案

对于 future 的读者

第 41 行的 text.tree.RD 出现问题。我所做的可能不是最完美的解决方案,但它有效。

您可以download将包作为 .zip 并解压缩。然后删除 ./man/text.tree.RD 中第 39 行之后的所有内容。然后你可以像这样安装包:

library(devtools)
if(!('reprtree' %in% installed.packages())){
install_local('path_to_extracted_zip/reprtree-master/')
}

关于r - Devtools Install_github 对于 Reprtree 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51210386/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com