Skip to content

Errors in R CMD check for R 2.8.0

5 messages · dxc13, Uwe Ligges, Gabor Grothendieck

#
useR's,

I get these 2 errors when I run "R CMD check" on my package, and I cannot
figure out how to get around them.  Does anyone have any ideas?  If it is of
any help, I use Windows XP.
...
* checking replacement functions .... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
Error in inDL(x, as.logical(local), as.logical(now), ...): unable to load
shared library 'c:/Progra~1/R/R-2.8.0/library/tcltk/libs/tcltk.dll':
LoadLibrary failure: The specified procedure could not be found.

Error: .onLoad failed in 'loadNamespace' for 'tcltk'

* Checking .Rd files ... OK
....
* checking data for non-ASCII characters ... OK
* creating kzs-Ex.R ... OK
* checking examples ... ERROR
Running examples in 'kzs-Ex.R' failed.

I have no idea how to solve the first problem with references the tcltk
package and I do not know why my examples won't run.   Any help is
appreciated.

dxc13
2 days later
#
dxc13 wrote:
Do you have tcltk installed at that location? Do you get any message 
from Windows? What happens if you type library("tcltk")?
See the log file (kzs-Ex.Rout).


Uwe Ligges
#
When I type library("tcltk") under R 2.8.0 I get the error message:
Loading Tcl/Tk interface ...Error in inDL(x, as.logical(local),
as.logical(now), ...) : 
  unable to load shared library
'C:/PROGRA~1/R/R-28~1.0/library/tcltk/libs/tcltk.dll':
  LoadLibrary failure:  The specified procedure could not be found.

Error : .onLoad failed in 'loadNamespace' for 'tcltk'
Error: package/namespace load failed for 'tcltk'

I do not get this error when I run R 2.7.0.  When I upgraded to R 2.8.0 I
just copied my library from 2.7.0 to the library folder of 2.8.0.  Is this
troublesome?
Uwe Ligges-3 wrote:

  
    
1 day later
#
dxc13 wrote:
Yes, it is. You may have overwritten your new tcltk installation by an 
outdated one.

You need to do now:

1. Re-intsall  R (in the same folder as before is fine)
2. run update.package(checkBuilt=TRUE)


Uwe Ligges
#
You could go to \Users\JoeDoe\Documents\R\win-library and rename
2.8 to 2.8x, say, reinstall R, grab movedir.bat from
http://batchfiles.googlecode.com
placing it in \Users\JoeDoe\Documents\R\win-library (or anywhere on
your path) and then check that it created a
\Users\JoeDoe\Documents\R\win-library\2.8
and run this in the Windows console

   cd \Users\JoeDoe\Documents\R\win-library
   movedir 2.8x 2.8

Then start R and choose Packages | Update

movedir.bat is a small batch file (with no dependencies) that can be used to
move your packages from one library to another with the safety feature that
it will not overwrite packages that are already in the target library.

On Tue, Oct 28, 2008 at 5:07 AM, Uwe Ligges
<ligges at statistik.tu-dortmund.de> wrote: