Skip to content

Commit

Permalink
accelerated
Browse files Browse the repository at this point in the history
  • Loading branch information
baddstats committed Jun 5, 2024
1 parent a4e8540 commit ab15878
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: spatstat.utils
Version: 3.0-4.001
Date: 2024-05-12
Version: 3.0-4.002
Date: 2024-06-05
Title: Utility Functions for 'spatstat'
Authors@R: c(person("Adrian", "Baddeley",
role = c("aut", "cre"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

CHANGES IN spatstat.utils VERSION 3.0-4.001
CHANGES IN spatstat.utils VERSION 3.0-4.002

OVERVIEW

Expand Down
12 changes: 7 additions & 5 deletions R/utilarg.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#'
#' Utilities for checking/handling arguments
#'
#' $Revision: 1.12 $ $Date: 2024/02/20 08:30:09 $
#' $Revision: 1.13 $ $Date: 2024/06/05 08:16:37 $
#'

"%orifnull%" <- function(a, b) {
Expand Down Expand Up @@ -335,15 +335,17 @@ trap.extra.arguments <- function(..., .Context="", .Fatal=FALSE) {
there.can.be.only.one <- function(..., .NeedOne=TRUE, .Fatal=TRUE) {
argh <- list(...)
given <- !sapply(argh, is.null)
nama <- sQuote(names(argh))
if(.NeedOne && !any(given)) {
ngiven <- sum(given)
if(.NeedOne && ngiven == 0) {
if(!.Fatal) return(FALSE)
nama <- sQuote(names(argh))
stop(paste("One of the arguments", commasep(nama, "or"), "is required"),
call.=FALSE)
}
if(sum(given) > 1) {
if(ngiven > 1) {
if(!.Fatal) return(FALSE)
stop(paste("The arguments", commasep(nama[given]), "are incompatible"),
namesgiven <- sQuote(names(argh)[given])
stop(paste("The arguments", commasep(namesgiven), "are incompatible"),
call.=FALSE)
}
return(TRUE)
Expand Down
2 changes: 1 addition & 1 deletion inst/doc/packagesizes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
"2023-03-11" "3.0-2" 39 186 0 3655 2031
"2023-05-09" "3.0-3" 39 186 0 3667 2031
"2023-10-24" "3.0-4" 39 186 0 3670 2031
"2024-05-12" "3.0-4.001" 39 187 0 3685 2031
"2024-06-05" "3.0-4.002" 39 187 0 3687 2031

0 comments on commit ab15878

Please sign in to comment.