简体   繁体   English

安装软件包PloGO时出错

[英]Error installing package PloGO

When I download the zip file of package PloGo from this link , and try to install it on windows R v3.0.1, using the following command: 当我从此链接下载软件包PloGo的zip文件,并尝试使用以下命令将其安装在Windows R v3.0.1上时:

install.packages("PATH/FILENAME.zip", repos=NULL)

It returns the "No such file or directory" error, while the file directory is true. 当文件目录为true时,它返回“没有这样的文件或目录”错误。

Any ideas? 有任何想法吗?

Probablly you have not set the path correct. 可能您没有设置正确的路径。 So the easiest way to do this will be using this piece of command. 因此,最简单的方法是使用以下命令。

install.packages(file.choose(), repos=NULL)

The R is looking for DESCRIPTION file inside the package but the package you downloaded contains another folder inside the first level folder (PloGO_2.0_RV3_0_1\\PloGO). R在软件包中寻找DESCRIPTION文件,但您下载的软件包在第一级文件夹(PloGO_2.0_RV3_0_1 \\ PloGO)中包含另一个文件夹。 Unzip the downloaded file and zip the PloGO folder inside it again as PloGO.zip. 解压缩下载的文件,然后再次将其中的PloGO文件夹压缩为PloGO.zip。 Use the newly zipped folder (PloGO.zip) as target to to install. 使用新压缩的文件夹(PloGO.zip)作为安装目标。

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

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