[R] ERROR: unable to collate and parse R files

Christian Hoffmann christian at echoffmann.ch
Mon Jul 20 00:03:44 CEST 2015


I tried in vain to execute

R CMD  install /Users/hoffmann/R/cwhmisc  ('cwhmisc' is the package name)

* installing to library 
‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library’
* installing *source* package ‘cwhmisc’ ...
** R
Error : '\&' ist eine unbekannte Escape-Sequenz in der Zeichenkette 
beginnend mit ""\&"
ERROR: unable to collate and parse R files for package ‘cwhmisc’
* removing 
‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/cwhmisc’
* restoring previous 
‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/cwhmisc’

under

 > sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
Running under: OS X 10.7.5 (Lion)

locale:
[1] C

attached base packages:
  [1] tools     stats4    splines   parallel  compiler  grid stats
  [8] graphics  grDevices utils     datasets  methods   base

other attached packages:
  [1] survival_2.38-1    spatial_7.3-9      rpart_4.1-9 nnet_7.3-9
  [5] mgcv_1.8-6         nlme_3.1-120       foreign_0.8-63 codetools_0.2-11
  [9] cluster_2.0.1      class_7.3-12       boot_1.3-16 Matrix_1.2-1
[13] MASS_7.3-40        KernSmooth_2.23-14 cwhmisc_6.0 lattice_0.20-31

Strategy of mine:
- search the net :
- grep for '\&'  : to no avail
- remove ~/.Rprofile : no success (it contained only 
'options(repos=c(CRAN="http://stat.ethz.ch/CRAN/"))' anyway)
- change CRAN mirror in .Rprofile : no success
- check vignette : nothing

- R CMD  check --as-cran /Users/hoffmann/R/cwhmisc : Installation failed.
   00install.out reads (also) Error : '\&' is an unrecognized escape in 
character string starting ""\&"
ERROR: unable to collate and parse R files for package 'cwhmisc'

What could be a way out of this maze?

-- 
Christian W. Hoffmann
CH - 8915 Hausen am Albis, Schweiz
Rigiblickstrasse 15 b, Tel.+41-44-7640853
mailto: christian at echoffmann.ch
home: www.echoffmann.ch



More information about the R-help mailing list