简体   繁体   English

将软件包安装到R的问题

[英]Problems with installing packages to R

I tried this: 我尝试了这个:

z <- zscore(NMEBXTP_MeanDepth, na.rm=TRUE)

and got this: 并得到了:

Error: could not find function "zscore"

So I did this: 所以我这样做:

install.packages(c("R.basic"), contriburl="http://www.braju.com/R/repos/")

And got this: 并得到这个:

Warning: unable to access index for repository http://www.braju.com/R/repos/
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
  package ‘R.basic’ is not available

Besides being dysbinarylexic whats my problem? 除了阅读困难,我还有什么问题?

Did you load the package for use before trying to use it? 您是否在尝试使用包装之前就将其装入包装以便使用? You need 你需要

library("R.basic")

or 要么

require("R.basic")

to actually load the package functions into the running R session for you to be able to use them. 将软件包功能实际加载到正在运行的R会话中,以便您可以使用它们。

If you don't actually have it installed at all, then something looks amiss with the repository. 如果您实际上根本没有安装它,那么该存储库看起来有些不对劲。 If we look here we see that R.basic has been deprecated and is not on CRAN. 如果我们在这里查看,我们会发现R.basic已被弃用,并且不在CRAN上。 Further, the page tells us that many of the R.basic are in the R.utils and aroma.light packages, both of which are on CRAN. 此外, 该页面还告诉我们,许多R.basic位于R.utilsaroma.light软件包中,这两个软件包均位于CRAN上。 Take a look at the CRAN pages for R.utils and aroma.light to see which one you need for the functionality you wanted to use. 查看R.utilsaroma.light的CRAN页面,以查看要使用的功能所需的页面。

If the problem installing from that repository continues, contact the maintainer of the repository to report the problem. 如果从该存储库安装的问题仍然存在,请与存储库的维护人员联系以报告问题。

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

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