我正在尝试按照以下步骤:
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 check ./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
我哪里出错了?
谢谢
Description:
行上溢出了。你需要确保续行正确缩进。 - nrussell