[R] unable to load a library

Gérard Henry Gerard.Henry at cmi.univ-mrs.fr
Thu Jul 24 12:38:18 CEST 2008


hello all,
i'm running R-2.6.1 on solaris 10 (x86). I added the package aplpack
without problems, but when i try to use it, i got errors:
> library(aplpack)
Loading required package: tcltk
Error in namespaceExport(ns, exports) :
   undefined exports :addTclPath, as.tclObj, is.tclObj, is.tkwin,
tclfile.dir, tclfile.tail
In addition: Warning message:
S3 methods '$.tclvar', '$<-.tclvar', 'as.character.tclObj',
'as.character.tclVar', 'as.double.tclObj', 'as.integer.tclObj',
'as.logical.tclObj', 'print.tclObj', '[[.tclArray', '[[<-.tclArray',
'$.tclArray', '$<-.tclArray', 'names.tclArray', 'names<-.tclArray',
'length.tclArray', 'length<-.tclArray', 'tclObj.tclVar',
'tclObj<-.tclVar', 'tclvalue.default', 'tclvalue.tclObj',
'tclvalue.tclVar', 'tclvalue<-.default', 'tclvalue<-.tclVar' were
declared in NAMESPACE but not found
Error: package 'tcltk' could not be loaded

What are the meaning of these errors? Is there a workaround like
settinfg an environment variable.

Here are the messages when i added the aplpack:
R26 CMD INSTALL /local/apps/downloads/aplpack_1.1.1.tar.gz
* Installing to library '/local/henry/R/i386-pc-solaris2.10-library/2.6'
* Installing *source* package 'aplpack' ...
** R
** inst
** preparing package for lazy loading
Loading required package: tcltk
Loading Tcl/Tk interface ... done
** help
  >>> Building/Updating help pages for package 'aplpack'
      Formats: text html latex example
   aplpack.package                   text    html    latex   example
   bagplot                           text    html    latex   example
   boxplot2D                         text    html    latex   example
   faces                             text    html    latex   example
   spin3R                            text    html    latex   example
   stem.leaf                         text    html    latex   example
** building package indices ...
* DONE (aplpack)

as you can see, tcltk is loaded without problems

thanks in advance for help,


-- 
Gerard HENRY
LATP UMR6632
39, rue F. Joliot Curie
13453 MARSEILLE Cedex 13
Tel.: 04 91 11 35 53 Fax.: 04 91 11 35 52



More information about the R-help mailing list