Hi, My problem is simple: since having updated the lattice package, I cannot load lattice anymore. If I type in the command 'library(lattice)' the loading fails with the following message: --- cut here --- Error in library.dynam(lib, package, package.lib) : shared library 'lattice' not found In addition: Warning messages: 1: In loadNamespace(package, c(which.lib.loc, lib.loc), keep.source = keep.source) : package 'lattice' contains no R code 2: S3 methods ?[.shingle?, ?as.data.frame.shingle?, ?plot.shingle?, ?print.shingle?, ?summary.shingle?, ?as.character.shingleLevel?, ?print.shingleLevel?, ?print.trellis?, ?plot.trellis?, ?update.trellis?, ?dim.trellis?, ?dimnames.trellis?, ?dimnames<-.trellis?, ?[.trellis?, ?t.trellis?, ?summary.trellis?, ?print.summary.trellis?, ?barchart.formula?, ?barchart.array?, ?barchart.default?, ?barchart.matrix?, ?barchart.numeric?, ?barchart.table?, ?bwplot.formula?, ?bwplot.numeric?, ?densityplot.formula?, ?densityplot.numeric?, ?dotplot.formula?, ?dotplot.array?, ?dotplot.default?, ?dotplot.matrix?, ?dotplot.numeric?, ?dotplot.table?, ?histogram.formula?, ?histogram.factor?, ?histogram.numeric?, ?qqmath.formula?, ?qqmath.numeric?, ?stripplot.formula?, ?stripplot.numeric?, ?qq.formula?, ?xyplot.formula?, ?levelplot.formula?, [... truncated] Error: package/namespace load failed for 'lattice' --- cut here --- R-System info: arch x86_64 os linux-gnu system x86_64, linux-gnu status major 2 minor 7.0 year 2008 month 04 day 22 svn rev 45424 language R version.string R version 2.7.0 (2008-04-22) Any hints? Any ideas? Thanks in advance, Kimmo
Try installing again by install.packages("lattice", .Library) (from an account with suitable privileges). If that still fails, we need to see the output produced during installation. On Tue, 6 May 2008, K. Elo wrote:> Hi, > > My problem is simple: since having updated the lattice package, I cannot > load lattice anymore. If I type in the command 'library(lattice)' the > loading fails with the following message: > > --- cut here --- > Error in library.dynam(lib, package, package.lib) : > shared library 'lattice' not found > In addition: Warning messages: > 1: In loadNamespace(package, c(which.lib.loc, lib.loc), keep.source > keep.source) : > package 'lattice' contains no R code > 2: S3 > methods ?[.shingle?, ?as.data.frame.shingle?, ?plot.shingle?, ?print.shingle?, ?summary.shingle?, ?as.character.shingleLevel?, ?print.shingleLevel?, ?print.trellis?, ?plot.trellis?, ?update.trellis?, ?dim.trellis?, ?dimnames.trellis?, ?dimnames<-.trellis?, ?[.trellis?, ?t.trellis?, ?summary.trellis?, ?print.summary.trellis?, ?barchart.formula?, ?barchart.array?, ?barchart.default?, ?barchart.matrix?, ?barchart.numeric?, ?barchart.table?, ?bwplot.formula?, ?bwplot.numeric?, ?densityplot.formula?, ?densityplot.numeric?, ?dotplot.formula?, ?dotplot.array?, ?dotplot.default?, ?dotplot.matrix?, ?dotplot.numeric?, ?dotplot.table?, ?histogram.formula?, ?histogram.factor?, ?histogram.numeric?, ?qqmath.formula?, ?qqmath.numeric?, ?stripplot.formula?, ?stripplot.numeric?, ?qq.formula?, ?xyplot.formula?, ?levelplot.f!ormula?,> [... truncated] > Error: package/namespace load failed for 'lattice' > --- cut here --- > > R-System info: > arch x86_64 > os linux-gnu > system x86_64, linux-gnu > status > major 2 > minor 7.0 > year 2008 > month 04 > day 22 > svn rev 45424 > language R > version.string R version 2.7.0 (2008-04-22) > > Any hints? Any ideas? > > Thanks in advance, > Kimmo > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Prof Brian Ripley kirjoitti viestiss??n (06.05.2008):> Does starting R --vanilla help? > > I am wondering if you have another corrupt copy of lattice somewhere. >The latter was the problem, many thanks for this! I use Rkward as GUI and obviously some packages have been installed into the user directory instead of being installed into the system directory. This messed up the installation :( After having deleted the local directory and restarted R lattice loaded just fine :) Once again: many thanks to Brian for his kind help! Kind regards, Kimmo
Possibly Parallel Threads
- Plotting counts vs. intervals for a shingle
- dotplot as a background for multiple barchart plots (with Lattice)
- dotplot & lattice problems: y axis values and bg color output in jpg
- [lattice] lines for stripplot (like dotplot) or jitter for dotplot?
- Requesting help with lattice again