简体   繁体   中英

Installation Failed during intall_github with wilcox_R package

I am trying to use the zdepth R function from the package wilcox_R available at github. As suggested, I used the usual command lines:

library("devtools"); install_github("musto101/wilcox_R")

However, I received the following error:

在此处输入图片说明

Any way out of this would be of great help.

There are problems with the package metadata that are preventing it from building, probably because the author hasn't finished developing the package yet.

Probably the easiest way to use the zdepth function is to download the repository source code. Open the repository in github ( https://github.com/musto101/wilcox_R ) then click Clone or Download and Download Zip .

从Github下载Zip

Unzip the archive and the zdepth function looks like it's in R/zdepth.R . Copy this file to your own project then load the function with source() , eg: source("R/zdepth.R") .

This is not the 'best' way to use this function, particularly if you want to use other functions in the package, but short of fixing the metadata yourself it's the most straightforward.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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