Skip to content

Commit

Permalink
prep for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Jun 8, 2023
1 parent 53ab0e2 commit f4d0fa6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: graticule
Type: Package
Title: Meridional and Parallel Lines for Maps
Version: 0.2.0
Version: 0.3.0
Authors@R: person("Michael D.","Sumner", role = c("aut", "cre"), email =
"[email protected]")
Description: Create graticule lines and labels for maps. Control the creation
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# graticule 0.3.0

* Remove checks for tests upset by package startup messages.

# graticule 0.2.0

* Now return values of functions are documented.
Expand Down
9 changes: 2 additions & 7 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
## graticule 0.2.0
## graticule 0.3.0

Release to remove dependency rgdal.

* Removed rgdal, maptools, rworldmap, oce from Suggests, and tested check succeeds without
those being installed.

* Documented the return values of all functions.
Fixed failing tests.

Thank you!

Expand Down
1 change: 0 additions & 1 deletion graticule.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ StripTrailingWhitespace: Yes
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
PackageRoxygenize: rd,collate,namespace,vignette
6 changes: 3 additions & 3 deletions tests/testthat/test-no-longitude-warnings.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ lon <- seq(170, 350, by = 10)
lat <- c(-50, -40)

test_that("no longitude warnings", {
expect_silent(graticule(lon, lat))
expect_s4_class(graticule(lon, lat), "SpatialLinesDataFrame")

expect_silent(graticule(lon, lat, tiles = TRUE))
expect_s4_class(graticule(lon, lat, tiles = TRUE), "SpatialPolygonsDataFrame")

expect_silent(graticule_labels(lon, lat))
expect_s4_class(graticule_labels(lon, lat), "SpatialPointsDataFrame")
})

0 comments on commit f4d0fa6

Please sign in to comment.