Building package/DESCRIPTION file not existing?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Building package/DESCRIPTION file not existing?

Francois Rousseu


Hello useRs
 
I am trying to build a package for personal use and for making easier working with other people but I keep getting the same error message about the DESCRIPTION file not existing.
 
when trying to install from a source tar.gz file:
 
Error in .read_description(dfile) :
  file 'C:/Users/Propriétaire/AppData/Local/Temp/RtmpHFMONb/R.INSTALL647a3535/mypkg/DESCRIPTION' does not exist
 
when trying to build a binary version:
 
Error in .read_description(dfile) :
  file 'C:/Users/Propriétaire/Documents/RETROBIRD/mypkg/DESCRIPTION' does not exist

In this last case, the DESCRIPTION file is certainly there! Also, help and DESCRIPTION files are edited and my path variable seems to be set correctly as I can access R and tex (form miktex 2.9) from the console. I feel it might be related to language issues (windows on my system is in french, see sessionInfo() at bottom of message) or something about temporary directories, but I really can't find the problem. I've looked into the cygwin warning, but it didn't seemed to be the problem, though I may be wrong.
 
Any hints? Below is the complete sequence with errors.
 
Thanks,
Francois Rousseu
 
   
> setwd("C:/Users/Propriétaire/Documents/RETROBIRD/")
> library(devtools)
> f <- function(x,y) x+y
> d <- data.frame(a=1, b=2)
> package.skeleton(list=c("f","d"), name="mypkg")

## editing of help and description files
 
Creating directories ...
Creating DESCRIPTION ...
Creating Read-and-delete-me ...
Saving functions and data ...
Making help files ...
Done.
Further steps are described in './mypkg/Read-and-delete-me'.

> build("C:/Users/Propriétaire/Documents/RETROBIRD/mypkg")

* checking for file 'C:\Users\Propriétaire\Documents\RETROBIRD\mypkg/DESCRIPTION' ... OK
* preparing 'mypkg':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a 'data/datalist' file should be added
* building 'mypkg_1.0.tar.gz'
cygwin warning:
  MS-DOS style path detected: C:/Users/Propri\xC3\xA9taire/Documents/RETROBIRD/mypkg_1.0.tar.gz
  Preferred POSIX equivalent is: /cygdrive/c/Users/Propri\xC3\xA9taire/Documents/RETROBIRD/mypkg_1.0.tar.gz
  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
[1] "C:/Users/Propriétaire/Documents/RETROBIRD/mypkg_1.0.tar.gz"

> install.packages(pkgs="mypkg_1.0.tar.gz",lib="C:/Users/Propriétaire/Documents/R/win-library/2.13",repos=NULL,type="source")

* installing *source* package 'mypkg' ...
Error in .read_description(dfile) :
  file 'C:/Users/Propriétaire/AppData/Local/Temp/RtmpHFMONb/R.INSTALL647a3535/mypkg/DESCRIPTION' does not exist
ERROR: installing package DESCRIPTION failed for package 'mypkg'
* removing 'C:/Users/Propriétaire/Documents/R/win-library/2.13/mypkg'
Warning messages:
1: running command 'C:/PROGRA~1/R/R-213~1.0/bin/x64/R CMD INSTALL -l "C:/Users/Propriétaire/Documents/R/win-library/2.13"   "mypkg_1.0.tar.gz"' had status 1
2: In install.packages(pkgs = "mypkg_1.0.tar.gz", lib = "C:/Users/Propriétaire/Documents/R/win-library/2.13",  :
  installation of package 'mypkg_1.0.tar.gz' had non-zero exit status
 
> build("C:/Users/Propriétaire/Documents/RETROBIRD/mypkg",binary=T)

* installing to library 'C:/Users/Propriétaire/Documents/R/win-library/2.13'
* installing *source* package 'mypkg' ...
Error in .read_description(dfile) :
  file 'C:/Users/Propriétaire/Documents/RETROBIRD/mypkg/DESCRIPTION' does not exist
ERROR: installing package DESCRIPTION failed for package 'mypkg'
* removing 'C:/Users/Propriétaire/Documents/R/win-library/2.13/mypkg'
Error: Command failed (1)
In addition: Warning message:
running command '"C:/PROGRA~1/R/R-213~1.0/bin/x64/R" CMD INSTALL "C:\Users\Propriétaire\Documents\RETROBIRD\mypkg" --build' had status 1

> sessionInfo()

R version 2.13.0 (2011-04-13)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=French_Canada.1252  LC_CTYPE=French_Canada.1252  
[3] LC_MONETARY=French_Canada.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_Canada.1252    
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base    
other attached packages:
[1] roxygen2_2.1 digest_0.5.1 devtools_0.4
loaded via a namespace (and not attached):
[1] brew_1.0-6     plyr_1.6       RCurl_1.6-10.1 stringr_0.5    tools_2.13.0
     
        [[alternative HTML version deleted]]


______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Building package/DESCRIPTION file not existing?

Uwe Ligges-3
As a first step try to get rid of the warning by doing what it says:
"CYGWIN environment variable option "nodosfilewarning" turns off this
warning."

So set (at least):
CYGWIN=nodosfilewarnings

and go ahead.

Uwe Ligges





On 25.10.2011 02:10, Francois Rousseu wrote:

>
>
> Hello useRs
>
> I am trying to build a package for personal use and for making easier working with other people but I keep getting the same error message about the DESCRIPTION file not existing.
>
> when trying to install from a source tar.gz file:
>
> Error in .read_description(dfile) :
>    file 'C:/Users/Propriétaire/AppData/Local/Temp/RtmpHFMONb/R.INSTALL647a3535/mypkg/DESCRIPTION' does not exist
>
> when trying to build a binary version:
>
> Error in .read_description(dfile) :
>    file 'C:/Users/Propriétaire/Documents/RETROBIRD/mypkg/DESCRIPTION' does not exist
>
> In this last case, the DESCRIPTION file is certainly there! Also, help and DESCRIPTION files are edited and my path variable seems to be set correctly as I can access R and tex (form miktex 2.9) from the console. I feel it might be related to language issues (windows on my system is in french, see sessionInfo() at bottom of message) or something about temporary directories, but I really can't find the problem. I've looked into the cygwin warning, but it didn't seemed to be the problem, though I may be wrong.
>
> Any hints? Below is the complete sequence with errors.
>
> Thanks,
> Francois Rousseu
>
>
>> setwd("C:/Users/Propriétaire/Documents/RETROBIRD/")
>> library(devtools)
>> f<- function(x,y) x+y
>> d<- data.frame(a=1, b=2)
>> package.skeleton(list=c("f","d"), name="mypkg")
>
> ## editing of help and description files
>
> Creating directories ...
> Creating DESCRIPTION ...
> Creating Read-and-delete-me ...
> Saving functions and data ...
> Making help files ...
> Done.
> Further steps are described in './mypkg/Read-and-delete-me'.
>
>> build("C:/Users/Propriétaire/Documents/RETROBIRD/mypkg")
>
> * checking for file 'C:\Users\Propriétaire\Documents\RETROBIRD\mypkg/DESCRIPTION' ... OK
> * preparing 'mypkg':
> * checking DESCRIPTION meta-information ... OK
> * checking for LF line-endings in source and make files
> * checking for empty or unneeded directories
> * looking to see if a 'data/datalist' file should be added
> * building 'mypkg_1.0.tar.gz'
> cygwin warning:
>    MS-DOS style path detected: C:/Users/Propri\xC3\xA9taire/Documents/RETROBIRD/mypkg_1.0.tar.gz
>    Preferred POSIX equivalent is: /cygdrive/c/Users/Propri\xC3\xA9taire/Documents/RETROBIRD/mypkg_1.0.tar.gz
>    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
> [1] "C:/Users/Propriétaire/Documents/RETROBIRD/mypkg_1.0.tar.gz"
>
>> install.packages(pkgs="mypkg_1.0.tar.gz",lib="C:/Users/Propriétaire/Documents/R/win-library/2.13",repos=NULL,type="source")
>
> * installing *source* package 'mypkg' ...
> Error in .read_description(dfile) :
>    file 'C:/Users/Propriétaire/AppData/Local/Temp/RtmpHFMONb/R.INSTALL647a3535/mypkg/DESCRIPTION' does not exist
> ERROR: installing package DESCRIPTION failed for package 'mypkg'
> * removing 'C:/Users/Propriétaire/Documents/R/win-library/2.13/mypkg'
> Warning messages:
> 1: running command 'C:/PROGRA~1/R/R-213~1.0/bin/x64/R CMD INSTALL -l "C:/Users/Propriétaire/Documents/R/win-library/2.13"   "mypkg_1.0.tar.gz"' had status 1
> 2: In install.packages(pkgs = "mypkg_1.0.tar.gz", lib = "C:/Users/Propriétaire/Documents/R/win-library/2.13",  :
>    installation of package 'mypkg_1.0.tar.gz' had non-zero exit status
>
>> build("C:/Users/Propriétaire/Documents/RETROBIRD/mypkg",binary=T)
>
> * installing to library 'C:/Users/Propriétaire/Documents/R/win-library/2.13'
> * installing *source* package 'mypkg' ...
> Error in .read_description(dfile) :
>    file 'C:/Users/Propriétaire/Documents/RETROBIRD/mypkg/DESCRIPTION' does not exist
> ERROR: installing package DESCRIPTION failed for package 'mypkg'
> * removing 'C:/Users/Propriétaire/Documents/R/win-library/2.13/mypkg'
> Error: Command failed (1)
> In addition: Warning message:
> running command '"C:/PROGRA~1/R/R-213~1.0/bin/x64/R" CMD INSTALL "C:\Users\Propriétaire\Documents\RETROBIRD\mypkg" --build' had status 1
>
>> sessionInfo()
>
> R version 2.13.0 (2011-04-13)
> Platform: x86_64-pc-mingw32/x64 (64-bit)
> locale:
> [1] LC_COLLATE=French_Canada.1252  LC_CTYPE=French_Canada.1252
> [3] LC_MONETARY=French_Canada.1252 LC_NUMERIC=C
> [5] LC_TIME=French_Canada.1252
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
> other attached packages:
> [1] roxygen2_2.1 digest_0.5.1 devtools_0.4
> loaded via a namespace (and not attached):
> [1] brew_1.0-6     plyr_1.6       RCurl_1.6-10.1 stringr_0.5    tools_2.13.0
>    
> [[alternative HTML version deleted]]
>
>
>
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Building package/DESCRIPTION file not existing?

Martin Maechler
In reply to this post by Francois Rousseu
>>>>> Francois Rousseu <[hidden email]>
>>>>>     on Mon, 24 Oct 2011 20:10:27 -0400 writes:

    > Hello useRs
 
    > I am trying to build a package for personal use and for
    > making easier working with other people but I keep getting
    > the same error message about the DESCRIPTION file not
    > existing.
 
    > when trying to install from a source tar.gz file:
 
    > Error in .read_description(dfile) : file
    > 'C:/Users/Propri�taire/AppData/Local/Temp/RtmpHFMONb/R.INSTALL647a3535/mypkg/DESCRIPTION'
    > does not exist
 
    > when trying to build a binary version:
 
    > Error in .read_description(dfile) : file
    > 'C:/Users/Propri�taire/Documents/RETROBIRD/mypkg/DESCRIPTION'
    > does not exist

    > In this last case, the DESCRIPTION file is certainly
    > there! Also, help and DESCRIPTION files are edited and my
    > path variable seems to be set correctly as I can access R
    > and tex (form miktex 2.9) from the console. I feel it
    > might be related to language issues (windows on my system
    > is in french, see sessionInfo() at bottom of message) or
    > something about temporary directories, but I really can't
    > find the problem. I've looked into the cygwin warning, but
    > it didn't seemed to be the problem, though I may be wrong.

Yes, I'm almost sure it's the "language issues".

I've recently taught a course on  R Package building
and on Windows, the user had problems because of an  'ä'
(a-Umlaut) in one of the directories in her 'path'.

So if you work from another place than
'C:/Users/Propri�taire/'  this may solve the main problem.

Bonnes salutations,
Martin Maechler, ETH Zurich
 
    > Any hints? Below is the complete sequence with errors.
 
    > Thanks, Francois Rousseu
 
[.........]


______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Building package/DESCRIPTION file not existing?

Francois Rousseu

Thanks to both of you.
 
Indeed, it was a language issue. I eventually detected a check warning stating that the DESCRIPTION file had non-ASCII characters and unknown encoding, but no special characters were in the file.
From reading various messages on mailing lists, I added Encoding: latin1 and it worked. Then, when installing the package tarball with install.packages, the " é " in the " Propriétaire " for the library
directory was changed to " ii ". So I used it's DOS equivalent "Program~1" and it also worked. I haven't notice any warning about using non-english Windows in the Writng R Extensions manual, but
I may have missed it. Anyway, I realize now that using non-english Windows is probably a really bad idea in general.
 
Cheers,
Francois Rousseu
 
 



> From: [hidden email]
> Date: Wed, 26 Oct 2011 10:37:30 +0200
> To: [hidden email]
> CC: [hidden email]
> Subject: Re: [R] Building package/DESCRIPTION file not existing?
>
> >>>>> Francois Rousseu <[hidden email]>
> >>>>> on Mon, 24 Oct 2011 20:10:27 -0400 writes:
>
> > Hello useRs
>
> > I am trying to build a package for personal use and for
> > making easier working with other people but I keep getting
> > the same error message about the DESCRIPTION file not
> > existing.
>
> > when trying to install from a source tar.gz file:
>
> > Error in .read_description(dfile) : file
> > 'C:/Users/Propri�taire/AppData/Local/Temp/RtmpHFMONb/R.INSTALL647a3535/mypkg/DESCRIPTION'
> > does not exist
>
> > when trying to build a binary version:
>
> > Error in .read_description(dfile) : file
> > 'C:/Users/Propri�taire/Documents/RETROBIRD/mypkg/DESCRIPTION'
> > does not exist
>
> > In this last case, the DESCRIPTION file is certainly
> > there! Also, help and DESCRIPTION files are edited and my
> > path variable seems to be set correctly as I can access R
> > and tex (form miktex 2.9) from the console. I feel it
> > might be related to language issues (windows on my system
> > is in french, see sessionInfo() at bottom of message) or
> > something about temporary directories, but I really can't
> > find the problem. I've looked into the cygwin warning, but
> > it didn't seemed to be the problem, though I may be wrong.
>
> Yes, I'm almost sure it's the "language issues".
>
> I've recently taught a course on R Package building
> and on Windows, the user had problems because of an 'ä'
> (a-Umlaut) in one of the directories in her 'path'.
>
> So if you work from another place than
> 'C:/Users/Propri�taire/' this may solve the main problem.
>
> Bonnes salutations,
> Martin Maechler, ETH Zurich
>
> > Any hints? Below is the complete sequence with errors.
>
> > Thanks, Francois Rousseu
>
> [.........]
     
        [[alternative HTML version deleted]]


______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.