- Fixed bug in calculation of False Discovery Rate in internal
pval_correct()
function - Fixed 'Moved Permanently' content by replacing the old URL with the new URL
- Migrated R-spatial dependency
- Replaced
raster
andsp
in Imports withterra
because of imminent package retirement geojsonsf
,ggmap
,ggplot2
,sf
,tidyterra
are now Suggests because they are used in the vignette- Updated vignette and documentation throughout
- Added GitHub R-CMD-check
- Updated citation style for CITATION file
- Replaced
if()
conditions comparingclass()
to string withinherits()
- Added
future::plan(future::multisession)
in tests to remove the files in temp directory - Updated maintainer contact information
- Updated dependencies
spatstat.core
andspatstat.linnet
packages based on feedback from the Spatstat Team (Adrian Baddeley and Ege Rubak). All random generators inspatstat.core
were moved to a new packagespatstat.random
spatstat.geom
,spatstat.core
,spatstat.linnet
, andspatstat (>=2.0-0)
are no longer Depends.spatstat.geom
andspatstat.random
are now Importsspatstat.data
is now Suggests- See the GitHub merge pull request.
- Fixed annotation typos in the
pval_correct()
function
- Addressed ERROR on R-devel CRAN environments by setting
parallelly.makeNodePSOCK.setup_strategy = sequential
for all CRAN tests as suggested by the maintainer for thefuture
andparallelly
packages who is actively working on a solution. See the GitHub issue.
- Following advice from
future
package maintainer, nowspatial_power()
andjitter_power()
functions reset future strategy when exiting - Addressed ERROR in MacOS CRAN environments by setting the
parallelly.makeNodePSOCK.setup_strategy = sequential
for MacOS environments runningtcltk
untilparallelly
(>=1.26.1-9002) is on CRAN. This workaround was suggested by theparallelly
maintainer. See the GitHub issue.
- Removed
LazyData: true
from 'DESCRIPTION' file because the package has no data accessed via adata()
command and has nodata/
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
- Updated vignette with appropriate hyperlinks
- Updates to dependencies
- Updated
spatstat
package to new subsetted packages based on feedback from the Spatstat Team (Adrian Baddeley and Ege Rubak).spatstat.geom
andspatstat.core
packages replacespatstat
package in Depends - Imports
lifecycle
package to document deprecated argumentcascon
inspatial_power()
andjitter_power()
functions - Replaced
parallel
anddoParallel
packages in Imports withdoFuture
,doRNG
, andfuture
packages to allow for parallel processing inspatial_power()
andjitter_power()
functions to work across all CRAN environments - Removed
utils
package from Imports because the progress bar inspatial_power()
andjitter_power()
functions is now produced with a helper function in utils.R that imports theiterators
package - Removed
tidyverse
package from Suggests
- Updated
- Changes to DESCRIPTION
- Added ORCID for all authors and contributors
- Fixed typos in Description
- Changes to
spatial_data()
- Used
as.solist()
to specify appropriate class to lists
- Used
- Changes to
spatial_power()
- Added
p_correct
argument to apply a multiple testing correction - Fixed typos in documentation
- Deprecated
cascon
argument (moved tospatial_plots()
function) - Estimates case-only power (lower tail) and case/control (lower and upper tail) and captures both outputs. Case-only is now a one-tailed hypothesis test by default. The arguments
lower_tail
andupper_tail
have been replaced with argumentalpha
- Used
as.solist()
to specify appropriate class to lists
- Added
- Changes to
spatial_plots()
:- Added
cascon
argument to toggle the display of case-only power (lower tail) or case/control (lower and upper tail) output - Added
plot_title
argument to toggle the display of titles in plots. Changed the default title names. - Removed main panel title in plots
- Fixed default colors and removed mislabled
midpoint
color - Removed annotation from
plot.ppp()
in plot #3 and plot #2 (if points are not plotted) - Added
scale
argument to scale text for higher resolution plots - Added
horizontal
argument to toggle the display of the color key to be on the right (vertical) or bottom (horizontal) of plots - Added
plot_axes
argument to toggle the display of axes in plots - Added
plot_square
argument to toggle the margins of plots - Changed the value of
cex.axis
andcex
in plots - Updated documentation with correct order of
cols
- Added
- Changes to
jitter_power()
- Added
p_correct
argument to apply a multiple testing correction - Specified all packages for functions
- Deprecated
cascon
argument (moved tospatial_plots()
function) - Estimates case-only power (lower tail) and case/control (lower and upper tail) and captures both outputs. Case-only is now a one-tailed hypothesis test by default. The arguments
lower_tail
andupper_tail
have been replaced with argumentalpha
- Used
as.solist()
to specify appropriate class to lists - Updated example to reflect new updates
- Added
- Changes to vignette
- Set global chunk options
- Named code chunks
- Increased the
sim_total
value for a more realistic example - Specify all packages for functions
- Updated code to reflect updates to functions in
sparrpowR
- Updated code to use
sf
package - Updated explanation of the
cascon
argument to plot various hypothesis tests - Changed
cols
values to be more visible - Used
cut
instead ofreclassify
inraster
package for categorical plot - Created a new section called "Advanced Features" that has a new example run in parallel with a False Discovery Rate procedure.
- Added detail about fewer-than-expected simulated point locations in the first example
- Updated plots that spatially project data with CRS strings for PROJ6
- Added utils.R file
- Removed the helper
comb()
function functions fromjitter_power()
,spatial_power()
, andspatial_plots()
and added to the utils.R file - Removed
utils
package from Imports because the progress bar inspatial_power()
andjitter_power()
functions is now produced with a helperprogBar()
function
- Removed the helper
- Added zzz.R file
- Added package.R file
- Updated testthat checks for parallelization and multiple testing correction in
spatial_power()
andjitter_power()
functions