ask
parameter now skips all verification (caching and updates) when set to FALSE
(#67, #68)download_historic_data()
now has more flexible options to update the historic database (principally to enable better updating behaviour in shinyrems). (#69, thanks @aylapear)connect_historic_db()
to inform users of #79 where the timestamp is removed from the COLLECTION_START
and COLLECTION_END
columns. The issue will be resolved when next {duckdb} version is released. ems_posix_numeric()
functionstandardize_mdl_units()
to detect when MDL_UNIT
and UNIT
are different, and convert METHOD_DETECTION_LIMIT
to the same unit as RESULT
(and update the MDL_UNIT
column accordingly). (https://github.com/bcgov/wqbc/issues/158, #57)lt_lake_req()
that returns the requisition IDs of lakes in the B.C. long-term lakes monitoring program. To compliment this, filter_ems_data()
now has a req_id
argument that takes a vector of requisition ids (which can be supplied by lt_lake_req()
). #60, @KarHarkerlt_lake_sites()
now only returns EMS IDs for active sites in the B.C. long-term lakes monitoring program. #60, @KarHarkerread_historic_data()
was looking for the date of the latest historic data on GitHub (#56)Historic data are now being updated daily in the BC Data Catalogue. This release allows the daily
update of the sqlite historic dataset in rems
, but it means that it must be recreated each time from the csv, which takes a while.
attach_historic_data()
, it is now necessary to call connect_historic_db()
first, and finish with disconnect_historic_db()
. For example:con <- connect_historic_db()
hist_tbl <- attach_historic_data(con)
## Do your work with hist_tbl
disconnect_historic_db()
filter_
to avoid dplyr deprecation warnings. (#48)filter_ems_data
can now take many more forms of date-like inputs for from_date
and to_date
(Date
, POSIXct
, POSIXlt
, character
, numeric
; #42)rems.historic.path
. This is best set in your .Rprofile
file as
options(rems.historic.path = "path_to_file")
MDL_UNIT
column to denote the units of the minimum detection limit.dont_update
argument to get_ems_data()
and download_historic_data()
to
bypass the check to update data (#21).lt_lake_sites()
function t get the EMS_IDs of all of the long-term lake monitoring sites (ac34dbd)check_only
argument (default FALSE
) to get_ems_data()
to allow just checking the currency
of a rems dataset (#35 @sebdalgarno)check_db
argument (default TRUE
) to read_historic_data()
so that
a user can skip checking the currency of the historic dataset (#35 @sebdalgarno)read_historic_data
function much faster.param_code
argument to filter_ems_data
and read_historic_data
"wq"
columnsload_histori_data()
to attach_historic_data()
get_ems_data(which = "current")
will now throw an error. It now needs to be
get_ems_data(which = "2yr")
to achieve the same result as before, or it now
can be get_ems_data(which = "4yr")
to get four years of data.get_update_date()
to get_cache_date()
along with some refactoring of code for getting/setting update dates (#11)ask
parameter to get_ems_data()
and download_historic_data()
to optionally bypass download confirmation dialogue (#10)Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.