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]]

______________________________________________
R-help@r-project.org 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 via email to