Closed ThierryO closed 6 years ago
Thanks for the contribution Thierry, but unless something has changed the comment still pertains in the code you've now deleted. However, I have since read somewhere about how this can be achieved, so will dig around and find that. As is, your PR would fail on a clean vanilla environment (notably one that did not have mapproj
installed).
Aside from that, it's great that you put the missing NAMESPACE imports fields in from ggplot2
- an oversight on my part that they weren't there. I nevertheless prefer to double up and use explicit namespaces as well, so could you please reinstate all of these in the actual code (so ggplot2::aes
instead of aes
, for example). You do that; i'll find out how to get mapproj
dependency in without directly calling it, and we'll be good.
I think I can solve the mapproj dependency problem. I'll update the PR.
it turns out there isn't really a neat solution, but what we could do is to simply directly use mapproj::maproject
in a dummy function. Just put this somewhere in the code as a single line:
junk <- mapproj::mapproject(1:10,1:10)
It doesn't need to be wrapped in a function or anything. Just an interpretative comment to explain why it's there, then we can @importFrom mapproj mapproject
and all should be good.
Merging #28 into master will increase coverage by
1.76%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #28 +/- ##
==========================================
+ Coverage 85.56% 87.33% +1.76%
==========================================
Files 21 21
Lines 2418 2369 -49
==========================================
Hits 2069 2069
+ Misses 349 300 -49
Impacted Files | Coverage Δ | |
---|---|---|
R/add-osm-objects.R | 77.59% <ø> (ø) |
:arrow_up: |
R/add-colourbar.R | 98.82% <ø> (ø) |
:arrow_up: |
R/add-osm-groups.R | 96.05% <ø> (ø) |
:arrow_up: |
R/add-osm-surface.R | 96.03% <ø> (ø) |
:arrow_up: |
R/add-axes.R | 100% <ø> (ø) |
:arrow_up: |
R/osm-basemap.R | 96.77% <100%> (ø) |
:arrow_up: |
R/line2poly.R | 0% <0%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 00d4ebb...dc75778. Read the comment docs.
works with the setup below