Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R ggmap Error: object 'f' not found

Tags:

r

ggmap

rnoaa

After I install rnoaa packages, my ggmap package is not working. I couldn't even do the 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? Thank you!

like image 853
Minchun Zhou Avatar asked Jan 27 '17 04:01

Minchun Zhou


3 Answers

Reverting to ggplot v. 2.2.0 worked for me: devtools::install_github("hadley/[email protected]")

like image 191
mlevy Avatar answered Nov 15 '22 21:11

mlevy


  1. Reinstall R and R Studio
  2. Library(devtools) devtools::install_github("dkahle/ggmap") devtools::install_github("hadley/ggplot2")

Had the same error, and works fine now.

like image 45
Chrisftw Avatar answered Nov 15 '22 22:11

Chrisftw


I had this problem as well, uninstalling ggplot2 and reinstalling it from CRAN worked for me.

like image 1
Lib101 Avatar answered Nov 15 '22 20:11

Lib101