File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ get_mrip_catch <- function(
2222 # # URL query parameters
2323 new_species <- species | >
2424 stringr :: str_to_upper() | >
25- stringr :: str_replace_all(" " , " %20 " )
25+ stringr :: str_replace_all(" " , " + " )
2626
2727 catch_query <- dplyr :: case_when(
2828 type == " all" ~ " TOTAL+CATCH+%28TYPE+A+%2B+B1+%2B+B2" ,
@@ -49,7 +49,7 @@ get_mrip_catch <- function(
4949
5050 # # compile URL
5151 url <- paste0(
52- " https://www. st.nmfs .noaa.gov/SASStoredProcess/guest?_program=%2F%2FFoundation%2FSTP%2Fmrip_series_catch&qyearfrom=" ,
52+ " https://apps- st.fisheries .noaa.gov/SASStoredProcess/guest?_program=%2F%2FFoundation%2FSTP%2Fmrip_series_catch&qyearfrom=" ,
5353 years [1 ],
5454 " &qyearto=" ,
5555 years [2 ],
@@ -108,7 +108,8 @@ get_mrip_catch <- function(
108108 return (output )
109109}
110110
111- # get_mrip_catch("Atlantic cod", type = "landings")
111+
112+ # cod <- get_mrip_catch("Atlantic cod", type = "landings")
112113# bsb_test <- get_mrip_catch("BLACK SEA BASS")
113114
114115# ' Scrape MRIP trip data from MRIP Query tool
You can’t perform that action at this time.
0 commit comments