[Rd] packages update and error: no package called 'lattice',Error: package 'Hmisc could not be loaded; Tinn-R

Patrick Giraudoux patrick.giraudoux at univ-fcomte.fr
Sun Sep 12 13:53:05 CEST 2010


  Dear all,

Since some months after updating packages via 
update.packages(ask='graphics'), sometimes I loose 'lattice', although 
already installed. At R restart, I get:

Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())) :
   there is no package called 'lattice'
Error: package 'Hmisc' could not be loaded

In this case I must re-install 'lattice' and all comes back to normal 
thenafter

Here, for updating, R is started first (without Tinn-R) but  the script 
here below is in Rprofile.site (Tinn-R is the editor in standard usage).

I long hesitated to send this post before finding out when exactly 
'lattice' is removed during (or before) the update. But eventually, I am 
still messing on that.

Has anybody an idea about what may happen ?

Patrick


#===============================================================
# Tinn-R: necessary packages and functions
# Tinn-R: >= 2.1.1.2
#===============================================================
library(utils)

# check necesary packages
necessary = c('TinnR', 'svSocket')
installed = necessary %in% installed.packages()[, 'Package']
if (length(necessary[!installed]) >=1)
install.packages(necessary[!installed], dep=T)

# set options
options(use.DDE=T)
# uncoment the line below if you want Tinn-R starts
# always R starts
options(IDE='C:/Program Files/Tinn-R/bin/Tinn-R.exe')

# load packages
library(TinnR)
library(svSocket)

# start DDE
trDDEInstall()

.trPaths <- paste(paste(Sys.getenv('APPDATA'), '\\Tinn-R\\tmp\\', sep=''),
c('', 'search.txt', 'objects.txt', 'file.r', 'selection.r', 'block.r', 
'lines.r'), sep='')



More information about the R-devel mailing list