GithubHelp home page GithubHelp logo

Comments (6)

eddelbuettel avatar eddelbuettel commented on August 17, 2024

Use a better file system / disks / OS:

R> system.time(install.packages("BH"))
Installing package into/usr/local/lib/R/site-library’
(aslibis unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/BH_1.69.0-1.tar.gz'
Content type 'application/x-gzip' length 12378154 bytes (11.8 MB)
==================================================
downloaded 11.8 MB

* installing *source* packageBH...
** packageBHsuccessfully unpacked and MD5 sums checked
** using staged installation
** inst
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (BH)

The downloaded source packages are in/tmp/RtmpYmaz2f/downloaded_packagesuser  system elapsed 
  7.915   2.523  10.496 
R> 

10.5 seconds elapsed including the download for me. Linux, 1 1/2 year old "nice" machine, but nothing extravagant.

from bh.

goodwilrv avatar goodwilrv commented on August 17, 2024

I am using a very high performance PC, with pretty good RAM, with Windws 10. Tried again by reinstalling R inside D:// as well as C://Programs directory. R version: 3.6.0. But it doesn't succeed even after successful download.

system.time(install.packages("BH"))
Installing package into ‘\S575FJIYH061.jpadc.corpintra.net/home/GAUTKUM/Data/My Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://mirror-hk.koddos.net/CRAN/bin/windows/contrib/3.6/BH_1.69.0-1.zip'
Content type 'application/zip' length 19008275 bytes (18.1 MB)
downloaded 18.1 MB

and it never finishes the installation.

May be this issue is because somehow it is trying to access network resource \S575FJIYH061.jpadc.corpintra.net/ to refer to a folder locally ? Is there a way for me to specify the path in terms of local address, like "C:\Users\GAUTKUM\Data\My Documents/R/win-library/3.6" etc ??

I also see the BH zipped folder downloaded nicely at the below location,
C:\Users\GAUTKUM\AppData\Local\Temp\RtmpU9MWZS\downloaded_packages.
Is there a way to do the installation manually using this downloaded folder becuase installation.packages command fails ?

from bh.

markvanderloo avatar markvanderloo commented on August 17, 2024

I have some experience with MS networked file systems and at least where I work that is really really slow. So blame the infra guys or MS. On the positive side, ?install.packages tells us that you can install in any folder you want:

install.packages("BH", lib="path/to/your/local/folder/that/is/not/on/the/network")

If all your folders are virtualized, that will not help.

Alternatively, just download the .zip straight from CRAN and unpack in your library directory to install.

from bh.

goodwilrv avatar goodwilrv commented on August 17, 2024

Many thanks. I finally had to unzip it manually from the downloaded zipped folder and it worked fine. Many thanks for replying so quickly.

Regards
Gautam Kumar

from bh.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

Your network drive is the guilty party (or, more specifically, how Windows deals with it). The workaround you used is fine.

You can of course also install from source. In BH's case that is easy as it is essentially just a massive copy.

from bh.

NanisTe avatar NanisTe commented on August 17, 2024

I install it on Windows 10 C drive no virtual or network drives involved but still it takes more than 10 minutes to install BH package using Rstudio!

from bh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.