[R] R CMD check problem
Duncan Murdoch
murdoch.duncan at gmail.com
Wed Aug 3 19:04:59 CEST 2011
On 03/08/2011 12:47 PM, Baidya Nath Mandal wrote:
> Dear Murdoch,
>
> After setting CYGWIN=nodosfilewarning, i re-ran the R CMD check and got
> following message:
>
> * installing *source* package 'mypackage' ...
> ** libs
> ERROR: compilation failed for package 'mypackage'
> * removing 'C:/Rpackages/mypackage.Rcheck/mypackage'
>
> The log file contained following.
> * using log directory 'C:/Rpackages/mypackage.Rcheck'
> * using R version 2.13.0 (2011-04-13)
> * using platform: i386-pc-mingw32 (32-bit)
> * using session charset: ISO8859-1
> * checking for file 'mypackage/DESCRIPTION' ... OK
> * this is package 'mypackage' version '1.1'
> * checking package name space information ... OK
> * checking package dependencies ... OK
> * checking if this is a source package ... OK
> * checking for executable files ... OK
> * checking whether package 'mypackage' can be installed ... ERROR
> Installation failed.
> See 'C:/Rpackages/mypackage.Rcheck/00install.out' for details.
>
> The src directory contains nothing since all my codes are in R and are in
> the R directory. I have checked that the code works fine in R console. My
> DESCRIPTION file is like this:
> Package: mypackage
> Version: 1.1
> Date: 2011-07-14
> Title: abcd
> Author: B N Mandal<mandal.stat at gmail.com>
> Maintainer: B N Mandal<mandal.stat at gmail.com>
> Depends: R(>= 2.13.0)
> Description: xyz
> License: GPL (>=2)
>
> and NAMESPACE file contains
> export(fun1)
>
> I have checked Rd files are fine.
>
> Can you suggest what may be wrong now?
You should delete your src directory if you don't need it.
Duncan Murdoch
> regards,
> BN Mandal
>
> On Tue, Aug 2, 2011 at 4:17 PM, Duncan Murdoch<murdoch.duncan at gmail.com>wrote:
>
> > On 11-08-02 5:26 AM, Baidya Nath Mandal wrote:
> >
> >> Dear friends,
> >>
> >> I am building an R package called *mypackage*. I followed every possible
> >> steps (to my understanding) for the same. I got following problem while
> >> doing *R CMD check mypackage*.
> >>
> >> * installing *source* package 'mypackage' ...
> >> ** libs
> >> cygwin warning:
> >> MS-DOS style path detected: C:/PROGRA~1/R/R-213~1.0/etc/**i386/Makeconf
> >> Preferred POSIX equivalent is:
> >> /cygdrive/c/PROGRA~1/R/R-213~**1.0/etc/i386/Makeconf
> >> CYGWIN environment variable option "nodosfilewarning" turns off this
> >> warning.
> >> Consult the user's guide for more details about POSIX paths:
> >> http://cygwin.com/cygwin-ug-**net/using.html#using-pathnames<http://cygwin.com/cygwin-ug-net/using.html#using-pathnames>
> >>
> >
> > I believe that warning is ignorable, but you can turn it off using
> >
> > set CYGWIN=nodosfilewarning
> >
> > It probably didn't cause the error below.
> >
> >
> > ERROR: compilation failed for package 'mypackage'
> >>
> >
> > I don't know what did cause that error, but it's likely something in your
> > src directory of the package. What do you have there?
> >
> > Duncan Murdoch
> >
> > * removing 'C:/Rpackages/mypackage.**Rcheck/mypackage'.
> >>
> >> What I understood from above is that it is something with PATH variable. I
> >> had set the following PATH variable:
> >> C:\Rtools\bin;C:\Rtools\MinGW\**bin;"C:\Program
> >> Files\R\R-2.13.0\bin";"C:\**Program Files\MiKTeX
> >> 2.9\miktex\bin";%SystemRoot%\**system32;%SystemRoot%;%**
> >> SystemRoot%\System32\Wbem;%**SYSTEMROOT%\System32\**
> >> WindowsPowerShell\v1.0\;"C:\**Program
> >> Files\HTML Help Workshop"
> >>
> >>
> >> Can anybody suggest what possibly could have gone wrong?
> >>
> >> Thanks,
> >> BN Mandal
> >>
> >> [[alternative HTML version deleted]]
> >>
> >> ______________________________**________________
> >> R-help at r-project.org mailing list
> >> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
> >> PLEASE do read the posting guide http://www.R-project.org/**
> >> posting-guide.html<http://www.R-project.org/posting-guide.html>
> >> and provide commented, minimal, self-contained, reproducible code.
> >>
> >
> >
>
More information about the R-help
mailing list