简体   繁体   English

错误:包“aomisc”的延迟加载失败

[英]ERROR: lazy loading failed for package 'aomisc'

I am trying to install 'aomisc' from GitHub in R and I am getting this error:我正在尝试从 R 中的 GitHub 安装“aomisc”,但出现此错误:

Installing package into ‘C:/Users/kyrad/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'aomisc' ...
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'drc' was built under R version 4.0.2
Execution halted
ERROR: lazy loading failed for package 'aomisc'
* removing 'C:/Users/kyrad/Documents/R/win-library/4.0/aomisc'
Error: Failed to install 'aomisc' from GitHub:
  (converted from warning) installation of package ‘C:/Users/kyrad/AppData/Local/Temp/Rtmp0UXlX8/file8f9417e57d8b/aomisc_0.64.tar.gz’ had non-zero exit status
> 

Please help!请帮忙! Thank you so much非常感谢

This question has been answered before.这个问题之前已经回答过了。

Reference: Question参考: 问题

The following 3 could be the answers:以下3个可能是答案:

The error is usually caused by missing arguments (as stated in the comments) or packages.该错误通常是由缺少参数(如注释中所述)或包引起的。 For example, I had the following in my package: library("DESeq2") I couldn't build and install my package because the package DESeq2 was not installed.例如,我的包中有以下内容: library("DESeq2") 我无法构建和安装我的包,因为没有安装包 DESeq2。 Once I installed the package, everything worked.一旦我安装了软件包,一切正常。

Reference: Answer - 1参考:答案 - 1

This error message also occurs if you have uncommented code in the function file that is outside of the function definition.如果在函数定义之外的函数文件中有未注释的代码,也会出现此错误消息。 The solution is to comment out or delete, the code that is not inside your function.解决方案是注释掉或删除不在您的函数中的代码。

Reference: Answer - 2参考:答案 - 2

In my case, I found an inactive/unused R file in the R folder of the package I wanted to build.就我而言,我在要构建的包的 R 文件夹中发现了一个非活动/未使用的 R 文件。 Once I deleted/removed this file, I was able to build the package.一旦我删除/删除了这个文件,我就能够构建这个包。

Reference: Answer - 3参考:答案 - 3

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

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