Skip to content

Commit

Permalink
Prepare 1.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-m-lenz committed Mar 22, 2023
1 parent fbd8629 commit 30a5903
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
^\.Rproj\.user$
^preprocessing$
^README\.Rmd$
dePlzMap.pdf
make-manual.R
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.Rhistory
.RData
.Ruserdata
dePlzMap.pdf
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dePlzMap
Title: Create a heatmap based on the PLZ regions of Germany
Version: 0.0.0.9000
Title: Create a choropleth map based on the PLZ regions of Germany
Version: 1.0.0
Authors@R:
person("Stefan", "Lenz", , "stefan-m-lenz@web.de", role = c("aut", "cre"))
Description: This package provides a function that can plot a map of Germany
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ palette for the discrete values like demonstrated above.
There are also several options for further customizing the plot
via arguments of the `dePlzMap` function.


More information about the arguments can be found in the [package manual](https://github.com/stefan-m-lenz/dePlzMap/releases/download/v1.0.0/dePlzMap.pdf).

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ manipulated further via the `+` operation, e.g. by changing the color
palette for the discrete values like demonstrated above. There are also
several options for further customizing the plot via arguments of the
`dePlzMap` function.

More information about the arguments can be found in the [package
manual](https://github.com/stefan-m-lenz/dePlzMap/releases/download/v1.0.0/dePlzMap.pdf).
17 changes: 17 additions & 0 deletions make-manual.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
library(devtools)
# for (rdfile in list.files("man")) {
# file.remove(file.path("man", rdfile))
# }

makeManual <- function(x) {
devtools::document()
if (file.exists(paste0(x, ".pdf"))) {
file.remove(paste0(x, ".pdf"))
}
try({system2("R", args = paste0("CMD Rd2pdf ../", x))})
subdirs <- list.dirs(recursive = FALSE)
unlink(subdirs[grep(pattern = "\\.Rd2pdf.*", subdirs)], recursive = TRUE)
}

makeManual("dePlzMap")

0 comments on commit 30a5903

Please sign in to comment.