- using R version 4.3.3 (2024-02-29 ucrt)
- using platform: x86_64-w64-mingw32 (64-bit)
- R was compiled by
gcc.exe (GCC) 12.3.0
GNU Fortran (GCC) 12.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'ohun/DESCRIPTION' ... OK
- this is package 'ohun' version '1.0.1'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'ohun' can be installed ... WARNING
Found the following significant warnings:
Warning: replacing previous import 'seewave::wav2flac' by 'warbleR::wav2flac' when loading 'ohun'
See the install log for details.
- checking installed package size ... NOTE
installed size is 6.8Mb
sub-directories of 1Mb or more:
doc 6.1Mb
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [3s] OK
- checking whether the package can be loaded with stated dependencies ... [3s] OK
- checking whether the package can be unloaded cleanly ... [3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s] OK
- checking loading without being on the library search path ... [3s] OK
- checking startup messages can be suppressed ... [3s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... WARNING
Missing or unexported objects:
'warbleR::duration_wavs' 'warbleR::try_na'
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [15s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [1s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [3s] ERROR
Running examples in 'ohun-Ex.R' failed
The error most likely occurred in:
> ### Name: consensus_detection
> ### Title: Remove ambiguous detections
> ### Aliases: consensus_detection
>
> ### ** Examples
>
> {
+ # load example data
+ data("lbh1", "lbh_reference")
+
+ # save sound files
+ tuneR::writeWave(lbh1, file.path(tempdir(), "lbh2.wav"))
+
+ # template for the first sound file in 'lbh_reference'
+ templ1 <- lbh_reference[1, ]
+
+ # generate template correlations
+ tc <- template_correlator(
+ templates = templ1, path = tempdir(),
+ files = "lbh2.wav"
+ )
+
+ # template detection
+ td <- template_detector(template.correlations = tc, threshold = 0.12)
+
+ # this detection generates 2 split positives
+ diagnose_detection(
+ reference = lbh_reference[lbh_reference == "lbh2.wav", ],
+ detection = td
+ )
+
+ # label detection
+ ltd <- label_detection(
+ reference = lbh_reference[lbh_reference == "lbh2.wav", ],
+ detection = td
+ )
+
+ # now they can be filter to keep the detection with the highest score for each split
+ ftd <- consensus_detection(ltd, by = "scores")
+
+ # splits must be 0
+ diagnose_detection(
+ reference = lbh_reference[lbh_reference == "lbh2.wav", ],
+ detection = ftd
+ )
+ }
all selections are OK
Error: 'try_na' is not an exported object from 'namespace:warbleR'
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [87s] ERROR
Error(s) in re-building vignettes:
--- re-building 'energy_based_detection.Rmd' using rmarkdown
Quitting from lines 249-280 [unnamed-chunk-13] (energy_based_detection.Rmd)
Error: processing vignette 'energy_based_detection.Rmd' failed with diagnostics:
could not find function "sim_songs"
--- failed re-building 'energy_based_detection.Rmd'
--- re-building 'intro_to_ohun.Rmd' using rmarkdown
--- finished re-building 'intro_to_ohun.Rmd'
--- re-building 'template_based_detection.Rmd' using rmarkdown
Quitting from lines 150-155 [unnamed-chunk-9] (template_based_detection.Rmd)
Error: processing vignette 'template_based_detection.Rmd' failed with diagnostics:
'try_na' is not an exported object from 'namespace:warbleR'
--- failed re-building 'template_based_detection.Rmd'
SUMMARY: processing the following files failed:
'energy_based_detection.Rmd' 'template_based_detection.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [18s] OK
- checking HTML version of manual ... [5s] OK
- DONE
Status: 2 ERRORs, 2 WARNINGs, 1 NOTE