R-3.3.3-1: unable to load stats.dll

Oliver Schoett oliver.schoett@capgemini.com
Tue Mar 28 14:28:00 GMT 2017

Marco Atzeri via cygwin wrote:
> Versions 3.3.3-1  of
>         R
>         libRmath
>         libRmath-devel
> for cygwin are now available

When I try to use Rscript, I get the warning below.  However, the file 
|/usr/lib/R/library/stats/libs/stats.dll| exists and looks fine:

    $ ls -la /lib/R/library/stats/libs/stats.dll
    -rwxr-xr-x 1 oschoett Domain_Users 646675 Mar  9 08:13 /lib/R/library/stats/libs/stats.dll
    $ file /lib/R/library/stats/libs/stats.dll
    /lib/R/library/stats/libs/stats.dll: PE32+ executable (DLL) (console) x86-64, for MS Windows

How can I make R usable without this warning again?

Oliver Schoett

$ Rscript.exe library.R
Error in dyn.load(file, DLLpath = DLLpath, ...) :
   unable to load shared object '/usr/lib/R/library/stats/libs/stats.dll':
   No such file or directory
During startup - Warning message:
package ‘stats’ in options("defaultPackages") was not found
Packages in library ‘/usr/lib/R/site-library’:

assertthat              Easy pre and post assertions.
dichromat               Color Schemes for Dichromats
gtable                  Arrange 'Grobs' in Tables
labeling                Axis Labeling
magrittr                A Forward-Pipe Operator for R
RColorBrewer            ColorBrewer Palettes

Packages in library ‘/usr/lib/R/library’:

base                    The R Base Package
boot                    Bootstrap Functions (Originally by Angelo Canty
                         for S)
class                   Functions for Classification
cluster                 "Finding Groups in Data": Cluster Analysis
                         Extended Rousseeuw et al.
codetools               Code Analysis Tools for R
compiler                The R Compiler Package
datasets                The R Datasets Package
foreign                 Read Data Stored by Minitab, S, SAS, SPSS,
                         Stata, Systat, Weka, dBase, ...
graphics                The R Graphics Package
grDevices               The R Graphics Devices and Support for Colours
                         and Fonts
grid                    The Grid Graphics Package
KernSmooth              Functions for Kernel Smoothing Supporting Wand
                         & Jones (1995)
lattice                 Trellis Graphics for R
MASS                    Support Functions and Datasets for Venables and
                         Ripley's MASS
Matrix                  Sparse and Dense Matrix Classes and Methods
methods                 Formal Methods and Classes
mgcv                    Mixed GAM Computation Vehicle with GCV/AIC/REML
                         Smoothness Estimation
nlme                    Linear and Nonlinear Mixed Effects Models
nnet                    Feed-Forward Neural Networks and Multinomial
                         Log-Linear Models
parallel                Support for Parallel computation in R
rpart                   Recursive Partitioning and Regression Trees
spatial                 Functions for Kriging and Point Pattern
splines                 Regression Spline Functions and Classes
stats                   The R Stats Package
stats4                  Statistical Functions using S4 Classes
survival                Survival Analysis
tcltk                   Tcl/Tk Interface
tools                   Tools for Package Development
utils                   The R Utils Package

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list