Closed parsonsdm closed 9 years ago
Hi Darren,
Are you on a Windows machine? If so a similar problem was reported here which required options(download.file.method = "wininet")
before the install_github
. If on a Mac, you could try options(download.file.method = "libcurl")
instead.
Hi Blake, yes I am on a windows machine. I tried your recommendation and realised that devtools required rtools.
options(download.file.method = "wininet") library(devtools) WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 3.2 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools(). Warning message: package ‘devtools’ was built under R version 3.1.3
So my next step was to find Rtools, but I get the following
find_rtools() WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 3.2 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools(). Warning: unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1 Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.1
Consequently the fetchR install doesn't work
install_github("blasee/fetchR") Downloading github repo blasee/fetchR@master Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached
Any help appreciated. Cheers, Darren
Hi Darren,
I think this may be due to R (Rstudio?) not being able to find your Rtools installation. Here is a nice step-by-step guide for connecting Rtools with R. May I also suggest upgrading your R (and Rstudio?) to the most recent version and trying again - some of these bugs/issues may have been fixed in later versions.
Secondly, I believe the 'unable to access index for repository' warnings may be due to firewall/proxy issues. Assuming you're using Rstudio, try going to tools --> global options --> Packages and 'uncheck' the "Use Internet Explorer library/proxy for HTTP" option.
Hope this helps!
Hi Blake, Thanks for your help with this. Wasn’t able to get it working, but that is probably due to a lack of persistence on my part. Thanks again for your help, Cheers, Darren
Hi Darren,
I still haven't been able to reproduce this issue but give this one last try:
devtools::install_local(file.choose())
fetchR
should now install on your system. When finished you can then type library(fetchR)
to load the package.This doesn't require internet connection from within R, which I think may have been the issue for you.
Thanks for raising the issue Darren, I've updated the README to include alternative instructions if the automatic install doesn't work.
Hi Blasse, I am quite new in R programming so sorry if my questions are too stupid. I am also trying to install the fetchR package in R and have similar problems. I tried to follow your recommendations but I did not succeed. I am using R.3.3. in a Mac OS X Yosemite 10.10.5
options(download.file.method = "libcurl") install.packages("fetchR")
downloaded 1.3 MB
The downloaded source packages are in‘/private/var/folders/b1/xmvr7lmn5wl2zzxf6934py180000gn/T/Rtmpy1CfjJ/downloaded_packages’"
install.packages("XML")
There is a binary version available but the source version is later: binary source needs_compilation XML 3.98-1.9 3.98-1.16 TRUE
Do you want to install from sources the package which needs compilation? y/n:
n
downloaded 1.8 MB
The downloaded binary packages are in /var/folders/b1/xmvr7lmn5wl2zzxf6934py180000gn/T//Rtmpy1CfjJ/downloaded_packages
install.packages("fetchR")
install.packages("devtools")
devtools::install_local(file.choose())
Could you help me with that?
Thanks a lot,
I.
Hi @imarine85,
If you use devtools::install_local(file.choose())
, you want to navigate to the downloaded ZIP file.
What is the output you get if you type library(fetchR)
into R? It seems to have downloaded the package successfully, so you may just need to load it into the R session.
Hi blasse,
Thanks for your answer. This is what I get:
devtools::install_local(file.choose()) Error in file.choose() : file choice cancelled library(fetch) Error in library(fetch) : there is no package called ‘fetch’
So it seems I should choose one of the files contained in the fetchR.master zip folder...(?) Many thanks again, I
Hi @imarine85,
Can you please follow these steps, and let me know where you are getting stuck:
* DONE (fetchR)
near the end of the output:
fetchR
. To load the package into your current session, type library(fetchR)
into the console. example(fetch)
into the console (press Enter to see the plots).Does this work for you?
Thanks, Blake
Hi Blake, Thanks a lot for your answer....But not, it does not work:
This is what I get:
install.packages("fetchR")
There is a binary version available but the source version is later: binary source needs_compilation fetchR 2.1-0 2.1-1 FALSE
installing the source package ‘fetchR’
downloaded 1.3 MB
The downloaded source packages are in ‘/private/var/folders/b1/xmvr7lmn5wl2zzxf6934py180000gn/T/RtmpNoMBOw/downloaded_packages’
library(fetchR) Error in library(fetchR) : there is no package called ‘fetchR’
how come??!!!😥
Inés
El mar., 6 nov. 2018 a las 7:40, Blake Seers (notifications@github.com) escribió:
Hi @imarine85 https://github.com/imarine85,
Can you please follow these steps, and let me know where you are getting stuck:
- Download RStudio https://www.rstudio.com/products/rstudio/download/#download. Choose to download the Mac OS X 10.6+ installer.
- Install RStudio by running the installer you have just downloaded.
- Once installed, open RStudio and navigate to the 'Packages' tab: [image: rstudio] https://user-images.githubusercontent.com/5362994/48033051-a8649500-e1be-11e8-9505-035eda7e7ec8.png
- Click on "Install": [image: packages_tab] https://user-images.githubusercontent.com/5362994/48033229-5ff9a700-e1bf-11e8-9635-7c0ea27aacb5.png
- Type "fetchR" into the Packages textbox, leave the other options as their default, and make sure you have the "Install dependencies" option checked: [image: install_fetchr] https://user-images.githubusercontent.com/5362994/48033313-bff04d80-e1bf-11e8-815b-e5c209769c59.png
- Click Install.
- You should see lines of red text, and if all was successful, you should see * DONE (fetchR) near the end of the output: [image: installed] https://user-images.githubusercontent.com/5362994/48033440-2a08f280-e1c0-11e8-83bb-350362f50820.png
- If you see this, then you have successfully installed the latest stable version of fetchR. To load the package into your current session, type library(fetchR) into the console.
- To run an example, type example(fetch) into the console (press Enter to see the plots).
Does this work for you?
Thanks, Blake
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/blasee/fetchR/issues/3#issuecomment-436077254, or mute the thread https://github.com/notifications/unsubscribe-auth/AqsCZR-STcHOfbnR4tZzR_h-W8Ap30YVks5usMxQgaJpZM4FoTnb .
Hi there, I am not able to install fetchR using the install code provided. I have pasted the point at which it falls over below. Any help would be greatly appreciated. Cheers, Darren