Skip to content

Commit

Permalink
version 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian D. Buller authored and cran-robot committed Jun 28, 2021
1 parent 38c773e commit af4aa9a
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 25 deletions.
9 changes: 4 additions & 5 deletions DESCRIPTION
@@ -1,7 +1,7 @@
Package: sparrpowR
Title: Power Analysis to Detect Spatial Relative Risk Clusters
Version: 0.2.1
Date: 2021-03-15
Version: 0.2.2
Date: 2021-06-28
Authors@R:
c(person(given = "Ian D.",
family = "Buller",
Expand Down Expand Up @@ -34,7 +34,6 @@ Description: Calculate the statistical power to detect clusters using kernel-bas
be found in J. F. Bithell (1991) <doi:10.1002/sim.4780101112>.
License: Apache License (>= 2.0)
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
Depends: R (>= 3.5.0), spatstat.geom, spatstat.core, spatstat.linnet,
spatstat (>= 2.0-0)
Expand All @@ -46,11 +45,11 @@ Language: en-US
URL: https://github.com/machiela-lab/sparrpowR
BugReports: https://github.com/machiela-lab/sparrpowR/issues
NeedsCompilation: no
Packaged: 2021-03-16 01:44:19 UTC; bullerid
Packaged: 2021-06-28 13:05:20 UTC; bullerid
Author: Ian D. Buller [aut, cre, cph] (<https://orcid.org/0000-0001-9477-8582>),
Derek W. Brown [aut, cph] (<https://orcid.org/0000-0001-8393-1713>),
Mitchell J. Machiela [ctb] (<https://orcid.org/0000-0001-6538-9705>),
Timothy A. Myers [ctb],
NCI [cph, fnd]
Repository: CRAN
Date/Publication: 2021-03-16 09:50:02 UTC
Date/Publication: 2021-06-28 13:30:02 UTC
15 changes: 8 additions & 7 deletions MD5
@@ -1,6 +1,6 @@
f9e9e3e4d8f854e1614dfebeb7814952 *DESCRIPTION
a5f576c27959cd2c60b2658e70aa996e *DESCRIPTION
fe71f3765d1f1d6c3f4c31cba0203790 *NAMESPACE
7751f5dc39ff0ee3f7df7d5966db6028 *NEWS.md
b16c87c5d5d3233d042a517862f1db82 *NEWS.md
f4bbfea1c535c9a87632199c12e1da8a *R/globals.R
bbbc54a621fa093a4c56bd08fe3079c0 *R/jitter_power.R
099022fcce8e774be9ca41e1e390aaf3 *R/package.R
Expand All @@ -11,9 +11,10 @@ ca99f454ac03a9e28c4b89801eae2005 *R/spatial_power.R
0437c204f4beddb97c3935bf16ff399f *R/utils.R
7c3d9c1a0bed7dd867122eedcaba2ecb *R/zzz.R
175441a235a7615722681b3a65599f8b *README.md
6352ab387fcaabb37f42df768bad8de0 *build/partial.rdb
354e7128c23007c2335311e75e16d27c *build/partial.rdb
81b2c1cc3b02cf40afd7861c15855cbb *build/vignette.rds
47447b802f98c5f04a68470f275d419f *inst/doc/vignette.html
58b3810baff94976fbabfeda07259517 *inst/CITATION
63f8b1c69a0a806ebee0fc6dc955755f *inst/doc/vignette.html
6f79a812c742950b89e776dd413f9b81 *inst/doc/vignette.html.asis
65fde25e5ca22cb95b18cd10798dca2d *man/figures/sparrpowR.png
d625f427c752c31dbb6022b3b93ccd7e *man/figures/spatial_plots1.png
Expand All @@ -22,17 +23,17 @@ d88d2d39b836bc8a2701eee2e3cb039b *man/figures/spatial_plots3.png
785f53725386f6a5b3955f8ccfe2e896 *man/figures/spatial_plots4.png
8a713ded6eb53b4ea8473a4fef8687b5 *man/figures/spatial_plots5.png
f3fedaaad67e4750ca1f46da79a9d448 *man/figures/spatial_plots6.png
a126f77b28764f777269b18ccd189c77 *man/jitter_power.Rd
8f6ebded9cf69ccc7a7b435a0e6ec328 *man/jitter_power.Rd
3e7a3eb4e61b8cca35b72d42b1b81357 *man/pval_correct.Rd
51a48c0a953f6fba5a2510b6995c490a *man/sparrpowR-package.Rd
d5a92a4791a93f08dd369ef778801e59 *man/spatial_data.Rd
7451a530216af7ce79122431437c449b *man/spatial_plots.Rd
e4533710e1eb6cc4624c54bc45b145e0 *man/spatial_power.Rd
df8c009c180445e8679ac358464a4da9 *man/spatial_power.Rd
0622a97a2aaa3c342f09636052c2d7f5 *tests/spelling.R
0ee18a57299658c9a062ae1d95a5ba6f *tests/testthat.R
10698d65c75d4f23b1316a68dc8feb8a *tests/testthat/test-jitter_power.R
09d7ad2f66e758676a938ad5e805ffcd *tests/testthat/test-test-spatial_data.R
c9d60cf0d54dfedd221272af9e5fa5ae *tests/testthat/test-test-spatial_plots.R
3fff3301d5912f35b4c61f37fd9a6005 *tests/testthat/test-test-spatial_power.R
5c7b5d7918ea6f82eb356188bcca060d *vignettes/vignette.Rmd
430ecfc5a3fd434036dc77d673be8651 *vignettes/vignette.Rmd
6f79a812c742950b89e776dd413f9b81 *vignettes/vignette.html.asis
6 changes: 6 additions & 0 deletions NEWS.md
@@ -1,5 +1,11 @@
# sparrpowR (development version)

# sparrpowR 0.2.2
* Removed `LazyData: true` from 'DESCRIPTION' file because the package has no data accessed via a `data()` command and has no `data/` directory (in response to CRAN NOTE: 'LazyData' is specified without a 'data' directory)
* Changed hyperlink for Stamen basemap in 'vignette' file with a Hypertext Transfer Protocol Secure destination
* Added 'CITATION' file
* Deprecation badges in 'jitter_power.Rd' and 'spatial_power.Rd' files now hyperlink to `lifecycle` r-lib.org site

# sparrpowR 0.2.1
* Updated vignette with appropriate hyperlinks

Expand Down
Binary file modified build/partial.rdb
Binary file not shown.
24 changes: 24 additions & 0 deletions inst/CITATION
@@ -0,0 +1,24 @@
citHeader("To cite sparrpowR in publications use:")

citEntry(entry = "Article",
title = "{sparrpowR}: a flexible {R} package to estimate statistical power to identify spatial clustering of two groups and its application",
author = personList(as.person("I. D. Buller"),
as.person("D. W. Brown"),
as.person("T. A. Myers"),
as.person("R. R. Jones"),
as.person("M. J. Machiela")),
journal = "International Journal of Health Geographics",
year = "2021",
volume = "20",
number = "1",
pages = "1--7",
doi = "10.1186/s12942-021-00267-z",
url = "https://ij-healthgeographics.biomedcentral.com/articles/10.1186/s12942-021-00267-z",
publisher = "BioMed Central",

textVersion =
paste("I. D. Buller, D. W. Brown (co-first), T. A. Myers, R. R. Jones, M. J. Machiela (2021).",
"sparrpowR: a flexible R package to estimate statistical power to identify spatial clustering of two groups and its application.",
"International Journal of Health Geographics 20(1), 1-7.",
"DOI 10.1186/s12942-021-00267-z.")
)
19 changes: 13 additions & 6 deletions inst/doc/vignette.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions man/jitter_power.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/spatial_power.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/vignette.Rmd
Expand Up @@ -107,7 +107,7 @@ spatial_plots(input = sim_power, # use output of above simulation
cols = cols) # colors of plot
```

Now, lets overlay our results on top of a basemap. Here, we will use an open-source map from [Stamen](https://maps.stamen.com/#terrain/12/37.7706/-122.3782), that is unprojected in WGS84. We extract the rectangular box (i.e., bounding box) surrounding our polygon boundary of the District of Columbia (WGS84).
Now, lets overlay our results on top of a basemap. Here, we will use an open-source map from [Stamen](https://stamen.com/open-source/), that is unprojected in WGS84. We extract the rectangular box (i.e., bounding box) surrounding our polygon boundary of the District of Columbia (WGS84).

```{r basemap}
dcbb <- sf::st_bbox(sf::st_buffer(sf::st_as_sf(dc), dist = 0.015))
Expand Down

0 comments on commit af4aa9a

Please sign in to comment.