-
Notifications
You must be signed in to change notification settings - Fork 12
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
qmap conflict #200
Comments
That's why we load ggmap before cranvas - to mask the qmap from ggmap. |
Yep, I realize that. It's really a nuisance to have the same function name in ggmap! On Mar 12, 2013, at 12:18 PM, Xiaoyue Cheng wrote:
Di Cook |
How about make cranvas depends and import on ggmap package in DESCRIPTION, On Tue, Mar 12, 2013 at 12:21 PM, dicook [email protected] wrote:
Tengfei Yin |
How about using |
If I understand the issue correctly, I think the potential problem is that, On Tue, Mar 12, 2013 at 1:25 PM, Yihui Xie [email protected] wrote:
Tengfei Yin |
That is probably an edge case. We need to guarantee our |
True, except the code is supposed to help the user, particularly get up to speed with cranvas. If they accidently load the ggmap library second, then the code breaks, and there is no clue in the code that this is the problem. Either a comment should be added to the code sample, letting the user know that there is a reason why the order of the libraries is this way, or that the ggmap::qmap is explicitly given in the code rather than loading the library. Do we even have ggmap as a dependency for cranvas?? On Mar 12, 2013, at 1:56 PM, Yihui Xie wrote:
Di Cook |
You are right, it depends, if that's just one case used in example, then I have the same problem before, trying to override qplot()/autoplot() from On Tue, Mar 12, 2013 at 1:56 PM, Yihui Xie [email protected] wrote:
Tengfei Yin |
The only function I borrow from ggmap is get_googlemap, so I've changed it ggmap is not a dependency but a suggestion to cranvas. On Tue, Mar 12, 2013 at 2:03 PM, dicook [email protected] wrote:
|
The example code for qmap:
library(ggmap)
library(cranvas)
qstate <- map_qdata("state")
qmap(qstate, googleMap = TRUE)
creates a conflict, because there is a qmap in both packages.
The text was updated successfully, but these errors were encountered: