Support the GITP forums on Patreon
Help support GITP's forums (and ongoing server maintenance) via Patreon
Results 1 to 3 of 3

Thread: R packages

  1. - Top - End - #1
    Troll in the Playground
     
    BardGuy

    Join Date
    Jan 2009

    Default R packages

    I have an odd issue with installing an R package.
    I want to install RCurl, and I found documentation at https://cran.r-project.org/web/packa...url/index.html.

    However, when I (in R) go to Packages and Install Packages, nothing happens. Well, not nothing. This pops up in the R console:
    ls:::menuInstallPkgs()
    but nothing happens to show me a list of packages to download.
    I don't have admin rights to my computer, so it could be something like that. Regardless, I'm not sure if I can install packages. (I was surprised I could install R!)

    So the questions
    Where can I find the source code for RCurl, so that I can just copy-paste the code of the package instead of installing it?
    I reckon it's somewhere in that link I posted above, but not sure where.

    Alternatively, can you tell why I'm failing to install a package?
    It has been over a year since I had to, so I might have forgotten.
    Last edited by JeenLeen; 2020-08-27 at 11:05 AM.

  2. - Top - End - #2
    Titan in the Playground
    Join Date
    May 2007
    Location
    Tail of the Bellcurve
    Gender
    Male

    Default Re: R packages

    You should be able to install the package from the command line via

    install.packages("RCurl")

    If that fails, the error message may be informative. You may need to select a CRAN mirror via the packages menu.

    You should also be able to download the package directly, just save the .tar.gz file on the CRAN page, then run

    install.packages("<filepath>", repos =NULL, type = "source")

    Where filepath is the path to wherever you saved the tar.gz file. You can also choose install from local file in the Packages menu.
    Blood-red were his spurs i' the golden noon; wine-red was his velvet coat,
    When they shot him down on the highway,
    Down like a dog on the highway,
    And he lay in his blood on the highway, with the bunch of lace at his throat.


    Alfred Noyes, The Highwayman, 1906.

  3. - Top - End - #3
    Colossus in the Playground
     
    Eldan's Avatar

    Join Date
    Jan 2007
    Location
    Switzerland
    Gender
    Male

    Default Re: R packages

    I was just about to say, download and install manually, but WG already said it.
    "Après la vie - le mort, après le mort, la vie de noveau.
    Après le monde - le gris; après le gris - le monde de nouveau.
    "

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •