Installation of R-package “BH” not possible

前端 未结 2 1179
轻奢々
轻奢々 2020-12-19 01:16

I cannot install the R-package BH which I need only to install dplyr afterwards.

The download works but something is wrong with the processing afterwards, as there i

相关标签:
2条回答
  • 2020-12-19 01:44

    BH, as a sizeable subset of Boost Headers is big, as in really big:

    edd@max:~$ du -csm /usr/local/lib/R/site-library/BH/
    111     /usr/local/lib/R/site-library/BH/
    111     total
    edd@max:~$ 
    

    That is 111 megabytes.

    You may simply have run our of patience if your Windows (network share ?) was slow in writing the files.

    BH is also widely used by other CRAN packages, and there has not been a package on any of the platforms used by CRAN.

    So I suggest you maybe place your R package library onto a local hard drive...

    If you have an actual bug report, please consider filing an issue ticket against our BH package.

    0 讨论(0)
  • 2020-12-19 01:56

    I had this problem -- there were two parts to my fix.

    1/ Download the windows binary from CRAN and save to the hard disk. You then select the menu item: Packages >> Install package(s) from local files…

    2/ Edit the utils:::unpackPkgZip function to increase the sleep time – so that my virus checker has time to scan it. To implement this, do the following:

    trace(utils:::unpackPkgZip, edit=TRUE)

    Look for the line Sys.sleep(0.5), toward the bottom of the body of the function; it's a big package so I went for Sys.sleep(10).

    If you are still seeing the error: Warning: unable to move temporary installation, try a longer sleep period.

    Note that you won't see the edit if you check utils:::unpackPkgZip; that is the unedited version, and it can be restored via untrace(utils:::unpackPkgZip).

    So see the edited version, use body(utils:::unpackPkgZip).

    0 讨论(0)
提交回复
热议问题