Skip to content

Commit 1dd6d04

Browse files
author
Stephanie Owen
committed
errors in get_mrip_data that are failing SOE workflows. Change URL beginning to match current MRIP setup (apps-st.fisheries.noaa.gov)
1 parent b75f69a commit 1dd6d04

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

R/get_mrip_data.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)