Installing lattice in R: "Error : Invalid DESCRIPTION file"

The Unfun Cat

I'm using R 3.0.2 and am trying to install the lattice package, like so:

install.packages("lattice")

This leads to the following error:

Error : Invalid DESCRIPTION file

Invalid Priority field. Packages with priorities 'base' or 'recommended' or 'defunct-base' must already be known to R.

How can I fix it?

Since the DESCRIPTION just seems to contain meta-info, I do not see why this should preclude me from installing the lattice package.

Update:

I have lattice installed, but need a newer version due to some dependencies. Using update.packages() for lattice returns the same error as above. I wonder if it is possible that the newer lattice versions are not compatible with the new R version?

Seeing BondedDust referring to DESCRIPTION I started investigating it, and it seems the new package has a Priority field in the DESCRIPTION file, but that the old version of the lattice DESCRIPTION file does not. Why should this matter?

me@tang:~/test_lattice$ grep Priority /home/endrebak/local/anaconda/lib64/R/library/lattice/DESCRIPTION                                                                                    
me@tang:~/test_lattice$ grep Priority lattice/DESCRIPTION #New version
Priority: recommended

I've tried updating the old DESCRIPTION file with a Priority: recommended line and reloading R, but still

>rownames(installed.packages(priority="recommended"))
NULL
#rownames(installed.packages(priority="base")) works fine, however.

Full error message below:

trying URL 'http://cran.uib.no/src/contrib/lattice_0.20-29.tar.gz'
Content type 'application/x-gzip' length 347091 bytes (338 Kb)
* installing *source* package ‘lattice’ ...
** package ‘lattice’ successfully unpacked and MD5 sums checked
Error : Invalid DESCRIPTION file

Invalid Priority field.
Packages with priorities 'base' or 'recommended' or 'defunct-base' must
already be known to R.

See the information on DESCRIPTION files in section 'Creating R
packages' of the 'Writing R Extensions' manual.

ERROR: installing package DESCRIPTION failed for package ‘lattice’
* removing ‘/home/me/local/anaconda/lib64/R/library/lattice’
* restoring previous ‘/home/me/local/anaconda/lib64/R/library/lattice’

The downloaded source packages are in
        ‘/tmp/Rtmptpj1ff/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("lattice") :
  installation of package ‘lattice’ had non-zero exit status
Elliott

I fixed this error by upgrading to R 3.2.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在R-Studio中使用Lattice panel.identify

来自分类Dev

R Lattice就像使用Python,Pandas和Matplotlib的情节

来自分类Dev

所有组合的igraph graph.lattice(在R中)

来自分类Dev

R lattice 3d plot: ticks disappear when changing panel border thickness

来自分类Dev

Lattice FPGA 内部时钟

来自分类Dev

Trouble installing an R package using R CMD install

来自分类Dev

Installing R-base in Linux Mint 17.1 Cinnamon

来自分类Dev

Lattice grouped dot plot with conditional fill color

来自分类Dev

Lattice Diamond 项目中的多个 VHDL 文件

来自分类Dev

相当于Lattice中的facet_wrap

来自分类Dev

对应于Complete Boolean Lattice * Q_n *的程序

来自分类Dev

相当于Lattice中的facet_wrap

来自分类Dev

lattice::levelpot 使用列索引而不是名称来绘制

来自分类Dev

Installing Groovy

来自分类Dev

使用Lattice(panel.smoother)或ggplot提取方程式以获得最佳拟合

来自分类Dev

Installing ngResource in Factory

来自分类Dev

Installing Inkscape on Mavericks

来自分类Dev

Installing Wamp on a Network Drive

来自分类Dev

Installing packages for Rstudio Docker

来自分类Dev

Installing SOGOU 搜狗拼音

来自分类Dev

Error installing bcrypt with NPM in meteor

来自分类Dev

error in installing hiredis through npm

来自分类Dev

Installing ctrlp in VIM using vundle

来自分类Dev

Alcatraz plugin isn't installing?

来自分类Dev

Google Play Services Library not installing

来自分类Dev

Installing ruby gems in a npm project

来自分类Dev

Installing Mozart or other software with Wine

来自分类Dev

Installing updated PFX wildcard into tomcat keystore

来自分类Dev

Error installing DocPad 6.53 on Windows 7