Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #236

Merged
merged 48 commits into from
Apr 12, 2024
Merged

Dev #236

Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
5234e25
Improve `check_fields()` regex #230 #220
daxkellie Feb 16, 2024
0e8428f
Add `galah_filter()` test for correct apostrophe parsing #214
daxkellie Feb 16, 2024
21bb1ab
Add tests for case where SDS data is requested via API #232
mjwestgate Feb 26, 2024
a96c3d7
Check - rather than overwrite - supplied vs returned field names #232
mjwestgate Feb 27, 2024
08fa507
Refine warnings for unexpected field names #232
mjwestgate Feb 27, 2024
9bd8d97
Update services for SBDI (#210) and BAO (#231)
mjwestgate Feb 27, 2024
b16ac65
fix bug in `show_all()` where errors rather than defaults to `show_al…
mjwestgate Feb 28, 2024
117f8b2
Add `show_all_distributions()` function
mjwestgate Mar 4, 2024
63a183a
add `atlas_distributions()` function
mjwestgate Mar 5, 2024
f8f992f
remove mistakenly added test image
mjwestgate Mar 5, 2024
fd39cda
Return correctly formatted field values by `show_values()` #233
daxkellie Mar 20, 2024
156cc33
add check within `collapse()` to see whether user has set an atlas
mjwestgate Mar 22, 2024
3215447
Fix `atlas_species()` for la-pipelines atlases (#234)
mjwestgate Mar 22, 2024
016a7db
Support `select()` for `atlas_species()` #227
mjwestgate Mar 25, 2024
4dce1dd
Change node message from `collapse()` to `.onLoad()`
mjwestgate Mar 25, 2024
7c61a7c
Fix error where labels were substituted for field values during `atla…
mjwestgate Mar 26, 2024
1bafd7c
Add styling to onLoad message
daxkellie Mar 26, 2024
47e40c1
Fix bug preventing `apply_profile()` working with `atlas_species()`
mjwestgate Mar 27, 2024
b564ffe
First pass at `galah_radius()` functionality #216
daxkellie Mar 27, 2024
38009bd
Merge branch 'dev' of https://github.com/AtlasOfLivingAustralia/galah…
daxkellie Mar 27, 2024
ab18406
Further fixes to `collect_occurrences_count()`
mjwestgate Mar 27, 2024
f02afb4
Add `group = "taxonomy"` option to `galah_select()`
mjwestgate Mar 27, 2024
0979732
Edits to `galah_radius()`, add info to `galah_geolocate()` #216
daxkellie Mar 27, 2024
1b6b3ef
First pass at improved filtering by assertions
mjwestgate Mar 28, 2024
df2d3ac
Remove incomplete functionality
mjwestgate Mar 28, 2024
a6937d6
Fix minor bugs in `galah_geolocate()`
mjwestgate Apr 2, 2024
b0585f7
clean up vignettes
mjwestgate Apr 2, 2024
a10c43b
first pass at updating NEWS.md
mjwestgate Apr 2, 2024
a8f0dbe
Add tests for type `radius` in `galah_geolocate()` #216
daxkellie Apr 3, 2024
eabf5d6
fix minor bugs discovered by `test()`
mjwestgate Apr 3, 2024
c1eb301
Add tests for `galah_radius()` #216
daxkellie Apr 3, 2024
4ad7d49
Merge branch 'dev' of https://github.com/AtlasOfLivingAustralia/galah…
daxkellie Apr 3, 2024
081aa6f
Test that `galah_radius()` works in a query
daxkellie Apr 3, 2024
36e4640
Add "experimental" badge to `galah_geolocate()` docs
daxkellie Apr 3, 2024
1adcd55
Add more to NEWS.md & reference issue numbers
daxkellie Apr 5, 2024
c0efa81
Avoid truncating list item values #235
daxkellie Apr 5, 2024
7acebfe
Add list item fix to NEWS.md
daxkellie Apr 5, 2024
18e387e
Minor adjustment to onLoad message
daxkellie Apr 9, 2024
48f43ef
Minor edits to vignettes
daxkellie Apr 9, 2024
22f980b
A few minor edits to choosing an atlas vignette
daxkellie Apr 9, 2024
199790a
support `galah_geolocate()` for GBIF queries
mjwestgate Apr 9, 2024
d7e6122
Support `galah_geolocate()` for GBIF occurrences
mjwestgate Apr 10, 2024
4b965ac
Clean up tests, minor bug fixes, update pkgdown.yml and NEWS.md
mjwestgate Apr 12, 2024
7577aa0
attempt to make startup messages 'quietable' using `suppressPackageSt…
mjwestgate Apr 12, 2024
1d3ad82
switch to packageStartupMessage() for onload()
mjwestgate Apr 12, 2024
cfaaba4
Get correct syntax for allowing users to prevent onload messages
mjwestgate Apr 12, 2024
34a60a8
Fix typos in tests for `galah_select()`
mjwestgate Apr 12, 2024
9826367
Fix typo in tests for `galah_select()`, but properly this time
mjwestgate Apr 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
attempt to make startup messages 'quietable' using `suppressPackageSt…
…artupMessages()`
mjwestgate committed Apr 12, 2024
commit 7577aa08f02a4794c4d94856f25dc9dcc0972ef1
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -224,6 +224,7 @@ importFrom(tibble,tibble)
importFrom(tidyr,drop_na)
importFrom(tidyr,unnest_longer)
importFrom(tidyselect,eval_select)
importFrom(utils,URLdecode)
importFrom(utils,URLencode)
importFrom(utils,adist)
importFrom(utils,unzip)
9 changes: 7 additions & 2 deletions R/onload.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#' Set-up for galah during loading
#' @noRd
#' @keywords Internal
#' @importFrom potions brew
#' @importFrom cli cli_text
#' @importFrom cli col_magenta
#' @importFrom potions brew
#' @importFrom rlang inform
.onLoad <- function(libname, pkgname) {
if (pkgname == "galah") {
brew(.pkg = "galah")
@@ -21,6 +22,10 @@
i = cli::cli_text("{cli::col_magenta('See all supported GBIF nodes with `show_all(atlases)`.')}"),
i = cli::cli_text("{cli::col_magenta('To change nodes, use e.g. `galah_config(atlas = \"GBIF\")`.')}")
)
inform(bullets)
inform(bullets,
class = c("packageStartupMessage", # see ?packageStartupMessage (required by `check()`)
"simpleMessage",
"message",
"condition"))
}
}
1 change: 1 addition & 0 deletions R/parse_checks.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#' Internal function to run metadata checks
#' This is useful for testing, particularly in testing `galah_select()`
#' called by `collapse()`
#' @importFrom utils URLdecode
#' @noRd
#' @keywords Internal
parse_checks <- function(.query){