diff --git a/DESCRIPTION b/DESCRIPTION index 1fad99af..8247f945 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,8 +2,8 @@ Package: glatos Type: Package Title: A package for the Great Lakes Acoustic Telemetry Observation System Description: Functions useful to members of the Great Lakes Acoustic Telemetry Observation System https://glatos.glos.us; many more broadly relevant to simulating, processing, analysing, and visualizing acoustic telemetry data. -Version: 0.8.0.9000 -Date: 2024-01-04 +Version: 0.8.0.9001 +Date: 2024-01-13 Depends: R (>= 3.5.0) Imports: av, diff --git a/NEWS.md b/NEWS.md index 1300a864..5393bdbd 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,10 @@ ### Bug fixes +- Omit data.table from class of object returned by `read_glatos_detections()` + and `read_glatos_receivers()`. + - fixes [issue #200](https://github.com/ocean-tracking-network/glatos/issues/200) + - Fix typo in Description to Suggest 'gifski' (not 'gifsky'). - fixes [issue #185](https://github.com/ocean-tracking-network/glatos/issues/185) diff --git a/R/load-read_glatos_detections.r b/R/load-read_glatos_detections.r index 7ca5151e..d53e77c9 100644 --- a/R/load-read_glatos_detections.r +++ b/R/load-read_glatos_detections.r @@ -128,7 +128,9 @@ read_glatos_detections <- function(det_file, version = NULL) { )) } - # assign class + # strip data.table and assign glatos_detections class + data.table::setDF(dtc) + dtc <- as_glatos_detections(dtc) return(dtc) diff --git a/R/load-read_glatos_receivers.r b/R/load-read_glatos_receivers.r index 1a184aaa..a5084d5a 100644 --- a/R/load-read_glatos_receivers.r +++ b/R/load-read_glatos_receivers.r @@ -109,7 +109,9 @@ read_glatos_receivers <- function(rec_file, version = NULL) { } #-end v1.x---------------------------------------------------------------- - # assign class + # strip data.table and assign glatos_receivers class + data.table::setDF(rec) + rec <- as_glatos_receivers(rec) return(rec)