简体   繁体   English

从 github 安装 flipMaxDiff package 时出错

[英]Error Installing flipMaxDiff package from github

Relative newby here struggling with an older install for R. Trying to get flipMaxDiff from either of the remaining github repositories (Displayr doesn't provide anymore I guess).相对较新的 R 的较旧安装正在努力。尝试从剩余的 github 存储库中获取 flipMaxDiff(我猜 Displayr 不再提供)。 When I try either one through the "install_github" function, I get the following error:当我通过“install_github”function 尝试任一方法时,出现以下错误:

Error: object 'TrimWhitespace' is not exported by 'namespace:flipFormat' Execution halted错误:object “TrimWhitespace”未由“命名空间:flipFormat”导出 执行暂停

I tried loading flipFormat and TrimWhitespace separately to see if that would facilitate an error-free download but to no avail.我尝试分别加载 flipFormat 和 TrimWhitespace 以查看这是否有助于无错误下载,但无济于事。 If anyone has a thought on how I could get this puppy to work, I'd appreciate your expertise and insight.如果有人想知道如何让这只小狗工作,我将感谢您的专业知识和洞察力。

THANKS!谢谢!

How I hacked it: create a project in rstudio from version control->git flipMaxDiff.我是如何破解它的:从版本控制-> git flipMaxDiff 在 rstudio 中创建一个项目。

Edit DESCRIPTION file in project root, Add "flipU," as a new line in the import section, and save.在项目根目录中编辑描述文件,在导入部分添加“flipU”作为新行,并保存。 Edit the data.R in R folder.编辑 R 文件夹中的 data.R。 On line 67 change "#' @importFrom flipFormat TrimWhitespace to #' @importFrom flipU TrimWhitespace and Save. Build->Build binary package Build->Install and restart在第 67 "#' @importFrom flipFormat TrimWhitespace#' @importFrom flipU TrimWhitespace并保存#' @importFrom flipU TrimWhitespace >Build binary package Build->Install and restart

I Implemented the changes suggested by user14831771 and some others to fix the errors while installing the package. You can install the package from the fork with the next lines我实施了 user14831771 和其他一些人建议的更改,以修复安装 package 时的错误。您可以使用下一行从 fork 安装 package

library(devtools)库(开发工具)

install_github(pelishk/flipMaxDiff)安装_github(pelishk/flipMaxDiff)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM