Skip to content

Commit e46d119

Browse files
author
Carly Lovas
committed
fixing species_list()
1 parent ee1e61d commit e46d119

6 files changed

Lines changed: 28 additions & 7 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Imports:
5151
janitor,
5252
readr,
5353
here,
54-
tidyr
54+
tidyr,
55+
SwimmeR
5556
URL: https://github.com/carlylovas/species.shifts, https://carlylovas.github.io/species.shifts/
5657
BugReports: https://github.com/carlylovas/species.shifts/issues

R/species_list.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ species_list <- function(source = "all") {
6767
"northern shortfin squid", "ocean quahog", "scup", "spiny dogfish", "summer flounder",
6868
"tilefish", "atlantic croaker", "striped bass", "gray triggerfish", "spanish mackerel"
6969
)) |>
70-
dplyr::mutate(clean_name = ifelse(comname == "goosefish", "monkfish", comname),
71-
clean_name = ifelse(comname == "atlantic surfclam", "surf clam", comname),
70+
dplyr::mutate(clean_name = comname,
71+
clean_name = stringr::str_replace(clean_name, "goosefish", "monkfish"),
72+
clean_name = stringr::str_replace(clean_name, "atlantic surfclam", "surf clam"),
7273
data_source = "nefsc")
7374

7475
observer <- data.frame(comname = c(

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ All three groups of functions will ultimately yield the materials needed to gene
6262
You can install the development version from [GitHub](www.github.com) with:
6363

6464
``` r
65-
devtools::install_github("https://github.com/carlylovas/species.shifts")
65+
pak::pak("carlylovas/species.shifts")
6666
```
6767

6868
## Vignettes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ You can install the development version from [GitHub](www.github.com)
8282
with:
8383

8484
``` r
85-
devtools::install_github("https://github.com/carlylovas/species.shifts")
85+
pak::pak("carlylovas/species.shifts")
8686
```
8787

8888
## Vignettes

man/plot_catch_trends.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plot_trip_estimates.Rd

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)