From kevinushey at gmail.com  Fri May 15 22:05:47 2015
From: kevinushey at gmail.com (Kevin Ushey)
Date: Fri, 15 May 2015 13:05:47 -0700
Subject: [Rd] Installation error with R-devel
In-Reply-To: <2f3a88$ldppo@ironport10.mayo.edu>
References: <2f3a88$ldppo@ironport10.mayo.edu>
Message-ID: <CAJXgQP0qTy9WW-3WJQZ_ZMytoZdfbHe9Bj+dFVOXzvUZz-f_yg@mail.gmail.com>

It's hard to diagnose this without your package sources / a
reproducible example.

Shot in the dark: one thing worth checking is that you don't have an
entry in your `.Rbuildignore` that's removing files you don't expect
it to (maybe that's causing R to strip out the 'doc/index.html' file)

Kevin

On Fri, May 15, 2015 at 12:54 PM, Therneau, Terry M., Ph.D.
<therneau at mayo.edu> wrote:
> I have a local library with functions that interrogates an
> institution-specific web API, so is not of interest to anyone outside of
> Mayo.  For some reason the R CMD INSTALL command fails.  See below:
>
> Build the library, then install it.
>
> tmt-local2127% R CMD build dart
> * checking for file ?dart/DESCRIPTION? ... OK
> * preparing ?dart?:
> * checking DESCRIPTION meta-information ... OK
> * installing the package to build vignettes
> * creating vignettes ... 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 ?dart_1.0-6.tar.gz?
>
> tmt-local2128% R CMD INSTALL dart_1.0-6.tar.gz
> * installing to library ?/home/therneau/Rlib?
> * installing *source* package ?dart? ...
> ** R
> ** data
> *** moving datasets to lazyload DB
> ** inst
> ** preparing package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** installing vignettes
> Warning in file(con, "w") :
>   cannot open file '/home/therneau/Rlib/dart/doc/index.html': No such file
> or directory
> Error in file(con, "w") : cannot open the connection
> ERROR: installing vignettes failed
> * removing ?/home/therneau/Rlib/dart?
>
> -- The installation works ok if I build it with the no-build-vignettes
> option.
> -- If I do that, I can cd to the vignettes directory and Sweave runs fine,
> i.e., library(dart) works
> -- A call to "tar -tf dart_1.0-6.tar.gz" reveals that the inst directory has
> only a NEWS file.
> -- R CMD check fails with the same message
>
> Hints anyone?
> Here is the sessionInfo() data
>
>> sessionInfo()
> R Under development (unstable) (2015-05-14 r68368)
> Platform: i686-pc-linux-gnu (32-bit)
> Running under: Ubuntu 14.04.1 LTS
>
> locale:
>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
>  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=C
>  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
>  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
>  [9] LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods base
>>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Installation error with R-devel
Kevin Ushey