Skip to content

Commit b4b1ae0

Browse files
authored
Merge pull request #8 from EricArcher/master
v 0.9.8 on CRAN
2 parents bc102cb + 03c9a6b commit b4b1ae0

65 files changed

Lines changed: 138 additions & 134 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ tar.gz$
1010
.DS_Store
1111
^\.github$
1212
^\.DS_Store$
13-
^appveyor\.yml$
13+
^appveyor\.yml$
14+
^CRAN-SUBMISSION$

.github/.gitignore

100644100755
File mode changed.

.github/workflows/R-CMD-check.yaml

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

CRAN-SUBMISSION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Version: 0.9.8
2+
Date: 2025-06-11 04:11:57 UTC
3+
SHA: bab66da242d793907acfe612a135d37e0aded140

DESCRIPTION

100644100755
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ Title: BioAcoustic eveNT classifiER
44
Description: Create a hierarchical acoustic event species classifier out of
55
multiple call type detectors as described in
66
Rankin et al (2017) <doi:10.1111/mms.12381>.
7-
Version: 0.9.6
7+
Version: 0.9.8
88
Authors@R: c(
9-
EA = person("Eric", "Archer", email = "eric.archer@noaa.gov", role = c("aut", "cre")),
10-
TS = person("Taiki", "Sakai", email = "taiki.sakai@noaa.gov", role = c("aut")))
9+
EA = person("Eric", "Archer", email = "eric.ivan.archer@gmail.com", role = c("aut", "cre")),
10+
SR = person("Shannon", "Rankin", email = "shannon.rankin@noaa.gov", role = c("aut")))
11+
URL: https://github.com/SWFSC/banter
12+
BugReports: https://github.com/SWFSC/banter/issues
1113
Depends:
12-
R (>= 4.1.0),
13-
magrittr
14+
R (>= 4.1.0)
1415
Imports:
1516
dplyr (>= 1.0.6),
1617
ggplot2 (>= 3.3.3),
@@ -26,7 +27,5 @@ Imports:
2627
tidyr (>= 1.1.1)
2728
Suggests: testthat
2829
License: GNU General Public License
29-
RoxygenNote: 7.2.3
30-
URL: https://github.com/ericarcher/banter
31-
BugReports: https://github.com/ericarcher/banter/issues
30+
RoxygenNote: 7.3.2
3231
Encoding: UTF-8

NAMESPACE

100644100755
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ export(runBanterModel)
1919
export(subsampleDetections)
2020
exportMethods(predict)
2121
exportMethods(summary)
22-
importFrom(magrittr,"%>%")
2322
importFrom(methods,new)
2423
importFrom(rlang,.data)

R/addBanterDetector.R

100644100755
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ removeBanterDetector <- function(x, name) {
116116
start <- Sys.time()
117117

118118
# Combine event data with call ids in detector
119-
df <- x@data %>%
120-
dplyr::select(.data$event.id, .data$species) %>%
121-
dplyr::inner_join(data, by = "event.id") %>%
122-
dplyr::mutate(species = as.character(.data$species)) %>%
123-
as.data.frame
119+
df <- x@data |>
120+
dplyr::select(.data$event.id, .data$species) |>
121+
dplyr::inner_join(data, by = "event.id") |>
122+
dplyr::mutate(species = as.character(.data$species)) |>
123+
as.data.frame()
124124

125125
# Check if any columns need to be removed because of missing data
126126
to.remove <- sapply(df, function(i) any(is.na(i)))
@@ -143,12 +143,12 @@ removeBanterDetector <- function(x, name) {
143143
if(is.null(sampsize)) return(NULL)
144144

145145
# Remove missing species and format columns
146-
df <- df %>%
147-
dplyr::filter(.data$species %in% names(sampsize)) %>%
148-
dplyr::mutate(species = factor(.data$species)) %>%
149-
dplyr::mutate(id = paste0(.data$event.id, ".", .data$call.id)) %>%
150-
tibble::column_to_rownames("id") %>%
151-
as.data.frame() %>%
146+
df <- df |>
147+
dplyr::filter(.data$species %in% names(sampsize)) |>
148+
dplyr::mutate(species = factor(.data$species)) |>
149+
dplyr::mutate(id = paste0(.data$event.id, ".", .data$call.id)) |>
150+
tibble::column_to_rownames("id") |>
151+
as.data.frame() |>
152152
droplevels()
153153

154154
# Setup number of cores
@@ -157,7 +157,7 @@ removeBanterDetector <- function(x, name) {
157157

158158
# Create random forest parameter list
159159
params <- list(
160-
predictors = df %>%
160+
predictors = df |>
161161
dplyr::select(-.data$event.id, -.data$call.id, -.data$species),
162162
response = df$species,
163163
sampsize = sampsize,
@@ -206,4 +206,4 @@ removeBanterDetector <- function(x, name) {
206206
proximity = FALSE,
207207
norm.votes = FALSE
208208
)
209-
}
209+
}

R/banter-package.R

100644100755
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#' banter
22
#'
3-
#' @docType package
43
#' @name banter-package
54
#' @aliases banter
65
#' @title BioAcoustic EveNT ClassifiER
@@ -9,10 +8,10 @@
98
#' of dolphins in the California Current using whistles, echolocation clicks,
109
#' and burst pulses. Marine Mammal Science 33:520-540. doi:10.1111/mms.12381
1110
#' @importFrom rlang .data
12-
#' @importFrom magrittr %>%
1311
#' @importFrom methods new
1412
#' @keywords package
1513
NULL
14+
"_PACKAGE"
1615

1716
.onAttach <- function(libname, pkgname) {
1817
packageStartupMessage(
@@ -46,4 +45,4 @@ NULL
4645
#' @usage data(test.data)
4746
#' @format list
4847
#' @keywords datasets
49-
NULL
48+
NULL

R/banterGuide.R

100644100755
File mode changed.

0 commit comments

Comments
 (0)