Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing older version of ggmap on R 3.6.1 #4

Closed
AyeMiranda opened this issue Jan 17, 2020 · 3 comments
Closed

Installing older version of ggmap on R 3.6.1 #4

AyeMiranda opened this issue Jan 17, 2020 · 3 comments

Comments

@AyeMiranda
Copy link

Hi @daroczig , I'm trying to install the old version of ggmap using this code:
install.packages('https://cran.r-project.org/src/contrib/Archive/ggmap/ggmap_2.6.2.tar.gz')
but it returns this warning and wouldn't install:

Warning in install.packages :
  package ‘https://cran.r-project.org/src/contrib/Archive/ggmap/ggmap_2.6.2.tar.gz’ is not available (for R version 3.6.1)

May I know which R version is recommended for this class to avoid some compatibility issues with the packages we will be working with? There's a newer version (3.6.2) released 2019-12-12, should we use this (or some older version, since we are also using an old version of ggmap)?

Thanks!

@daroczig
Copy link
Owner

You are on Windows?

I've just realized that running the above install.packages command might not be that trivial as it is compiling the package instead of downloading the binary -- that is preferred on Windows and Mac.

A workaround could be installing R tools on Windows as per https://cran.r-project.org/bin/windows/Rtools/ and retrying.

Or probably even better to rely on previously built binaries -- can you please give the below a try?

install.packages('ggmap', repos = 'https://cran.microsoft.com/snapshot/2019-02-01/')

@AyeMiranda
Copy link
Author

I'm using Mac (sorry forgot to mention earlier). Here are my details:
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.5

This code worked for me:
install.packages('ggmap', repos = 'https://cran.microsoft.com/snapshot/2019-02-01/')

After installing, I tried geocode('Budapest, Nador utca 9', source = 'dsk', ) and I was able to fetch the data.

Thanks a lot! 👍

@daroczig
Copy link
Owner

Awesome, thanks for raising this problem and I'm glad we could figure this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants