eddelbuettel / bh

R package providing Boost Header files
85 stars 33 forks source link

Installing Rd objects failed for package ‘BH’ #43

Closed sdanbury closed 7 years ago

sdanbury commented 7 years ago

Hello there,

I am experiencing strange error messages when I try and install the BH package.

Ubuntu 16.04.2 LTS R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"

Steps to reproduce:

library(devtools)
install_version("BH", version = "1.62.0-1")

This gives me the following:

trying URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/BH_1.62.0-1.tar.gz'
Content type 'application/x-gzip' length 10181096 bytes (9.7 MB)
==================================================
downloaded 9.7 MB

* installing *source* package ‘BH’ ...
** package ‘BH’ successfully unpacked and MD5 sums checked
** inst
Warning in file.append(to[okay], from[okay]) :
  write error during file append
Warning in file.append(to[okay], from[okay]) :
  write error during file append
Warning in file.append(to[okay], from[okay]) :
  write error during file append
...

<redacted-for-brevity>

...
Warning in file.append(to[okay], from[okay]) :
  write error during file append
Warning in file.append(to[okay], from[okay]) :
  write error during file append
** help
Error : /tmp/RtmpN1qAz1/R.INSTALL47aa53b0cfe7/BH/man/BH-package.Rd: Sections \title, and \name must exist and be unique in Rd files
ERROR: installing Rd objects failed for package ‘BH’

Any ideas?

Thanks!

eddelbuettel commented 7 years ago

Not a clue. I also don't understand why you think you need a devtools function to install a package.

On my Ubuntu 16.04 (where I already had BH, of course):

R> install.packages("BH")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/BH_1.62.0-1.tar.gz'
Content type 'application/x-gzip' length 10181096 bytes (9.7 MB)
==================================================
downloaded 9.7 MB

* installing *source* package ‘BH’ ...
** package ‘BH’ successfully unpacked and MD5 sums checked
** inst
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (BH)

The downloaded source packages are in
    ‘/tmp/RtmpBa9J82/downloaded_packages’
R> 

Usual advice is to try a different mirror etc pp. This must be a local issue.

sdanbury commented 7 years ago

I was using devtools so I could install a known version of the package. If there is a way to do that with install.packages or another function, let me know.

Thanks for the quick response. How strange, I will just create another instance.

eddelbuettel commented 7 years ago

Could be anything -- maybe your local disk acted up.

When I want a different version I usually start at the archive directory at CRAN.