File tree Expand file tree Collapse file tree 4 files changed +7
-22
lines changed
Expand file tree Collapse file tree 4 files changed +7
-22
lines changed Original file line number Diff line number Diff line change 11on :
22 push :
33 branches : main
4- pull_request :
5- branches : main
64
75name : Build and Push Docker Image
86
Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ base_map <- function() {
2222
2323fetch_spatial_ind <- function (data = NULL , ind = NULL ) {
2424 cli :: cli_alert_info(" Map - Fetching spatial informations for {ind}." )
25- data | >
26- dplyr :: filter(tag_id == ind ) | >
27- dplyr :: select(- species , - vernacular , - band_id )
25+ data | >
26+ dplyr :: filter(tag_id == as.numeric(ind )) | >
27+ dplyr :: collect() | >
28+ dplyr :: select(- species , - vernacular , - band_id )
2829}
2930
3031
Original file line number Diff line number Diff line change 1111# ' @noRd
1212
1313fetch_input_choices <- function (data ){
14-
15- loc_years <- data | >
16- dplyr :: mutate(year = lubridate :: year(datetime )) | >
17- dplyr :: select(tag_id , year ) | >
18- dplyr :: distinct()
19-
20- loc_summary <- data | >
14+ data | >
15+ dplyr :: collect() | >
2116 dplyr :: group_by(tag_id , vernacular , species ) | >
2217 dplyr :: mutate(year = lubridate :: year(datetime )) | >
2318 dplyr :: summarize(min = min(datetime ), max = max(datetime ))
24-
25- loc_summary | >
26- dplyr :: mutate(years = purrr :: map(tag_id , \(t ) {
27- loc_years | >
28- dplyr :: filter(tag_id == t ) | >
29- dplyr :: pull(year ) | >
30- unique()
31- }))
3219}
Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ fct_start <- function() {
2727
2828 # Load birds locations
2929 bird_locations <<- arrow :: gs_bucket(" bird-locations" ) | >
30- arrow :: open_dataset() | >
31- dplyr :: collect()
30+ arrow :: open_dataset()
3231
3332 onStop(clean_up_app )
3433}
You can’t perform that action at this time.
0 commit comments