R ggmap Error: object 'f' not found

After installing rnoaa packages rnoaa my ggmap package ggmap not work. I could not even make a simple example:

 >library(ggmap) >qmap(location = "boston university") 

Error in get ("f", environment (CoordMap $ train)): object 'f' not found

Does anyone have the same problem? Thanks!

+5
source share
6 answers

Return to ggplot v. 2.2.0 worked for me: devtools::install_github("hadley/ ggplot2@v2.2.0 ")

+5
source
  • Reinstall R and R Studio
  • Library(devtools) devtools::install_github("dkahle/ggmap") devtools::install_github("hadley/ggplot2")

Had the same error and now works fine.

+1
source

I had a problem too, uninstalling ggplot2 and reinstalling from CRAN worked for me.

+1
source

My colleague fixed this problem by installing an old version of ggmap. ggmap updated 2016-01-23. The old version from 2015 to 201 works fine. For those who have the same problem, follow the link below and download the old version of ggmap. This should solve the problem.

https://cran.r-project.org/web/packages/ggmap/index.html

0
source

I also had a problem with ggmap not working. Using the β€œversion” of the CRAN package, I saw that my installed version was 2.6.1, declared by CRAN as the latest version. But on GitHub, I discovered version 2.7 by downloading it using devtools, and now my code works.

0
source

You can go to this link and install the packages again. This should solve the problem.

0
source

Source: https://habr.com/ru/post/1263418/


All Articles