安装 R 包时出错
Error installing a R package
我正在尝试按照以下步骤操作:
https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf
用于安装 R 包。一切顺利,直到我转到 shell 和 运行:
的部分
"R CMD INSTALL -l /path/to/library linmod"
然后我一直收到错误:
"error reading file '~/linmod/DESCRIPTION"
文件就在那里,当我对文件打开的相同地址进行 gedit 时。
当我在 shell 中测试以下行时:
R CMD 检查 ./linmod linmod
我收到以下错误:
Error : file **'~/linmod/DESCRIPTION' is not in valid DCF format
EXISTS but not correct format****
我觉得应该是描述文件的问题。但是我基本上是复制粘贴论文中所说的内容。
以下是我的DESCRIPTION文件内容:
Package: linmod
Title: Linear Regression
Version: 1.0
Date: 2008-05-13
Author: Friedrich Leisch
Maintainer: Friedrich Leisch <Friedrich.Leisch@R-project.org>
Description: This is a demo package for the tutorial "Creating R
Packages" to Compstat 2008 in Porto.
Suggests: MASS
License: GPL-2
我哪里出错了?
干杯
第二行前4个空格为"Description"
如果一个字段需要多行,则需要缩进
我正在尝试按照以下步骤操作:
https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf
用于安装 R 包。一切顺利,直到我转到 shell 和 运行:
的部分"R CMD INSTALL -l /path/to/library linmod"
然后我一直收到错误:
"error reading file '~/linmod/DESCRIPTION"
文件就在那里,当我对文件打开的相同地址进行 gedit 时。 当我在 shell 中测试以下行时:
R CMD 检查 ./linmod linmod
我收到以下错误:
Error : file **'~/linmod/DESCRIPTION' is not in valid DCF format
EXISTS but not correct format****
我觉得应该是描述文件的问题。但是我基本上是复制粘贴论文中所说的内容。
以下是我的DESCRIPTION文件内容:
Package: linmod
Title: Linear Regression
Version: 1.0
Date: 2008-05-13
Author: Friedrich Leisch
Maintainer: Friedrich Leisch <Friedrich.Leisch@R-project.org>
Description: This is a demo package for the tutorial "Creating R
Packages" to Compstat 2008 in Porto.
Suggests: MASS
License: GPL-2
我哪里出错了?
干杯
第二行前4个空格为"Description"
如果一个字段需要多行,则需要缩进