Publications
Code
# Format a publication's author list
<- function(authors) {
format_authors # Split authors' names (First MI Last or First Last)
<- stringr::str_split(authors, " ")
authors_split # Format as Last, FI. or Last, FI.MI.
<- purrr::map_chr(
authors_formatted
authors_split,function(parts) {
if (length(parts) == 3) {
sprintf("%s %s.%s.",
1],
parts[substr(parts[2], 1, 1),
substr(parts[3], 1, 1))
else {
} sprintf("%s %s.",
1],
parts[substr(parts[2], 1, 1))
}
}
)# Shorten long author lists
if (length(authors_formatted) > 7) {
<- c(authors_formatted[1:5],
authors_short "...",
length(authors_formatted)])
authors_formatted[else {
} <- authors_formatted
authors_short
}# Make my name bold
== "Payne, A.R."] <- "<strong>Payne, A.R.</strong>"
authors_short[authors_short # Concatenate
paste(authors_short, collapse = ", ")
}
# Read bib file
<- suppressWarnings(bib2df::bib2df("works.bib")) |>
pubs # Retain relevant fields and format author list
::transmute(
dplyrauthors = purrr::map_chr(AUTHOR, format_authors),
title = TITLE,
journal = JOURNAL,
year = YEAR
|>
) # Format in HTML. Markdown doesn't support reverse ordered lists??
::mutate(
dplyrpub_html = glue::glue("<li>{authors}. ({year}). {title}. <em>{journal}</em>.")
|>
) ::pull(pub_html)
dplyr# Reverse ordered list
c(
"<ol reversed>",
pubs,"</ol>"
|>
) cat()
- Czapanskiy, M.F., Arcila H., Munro, C., Garfield, I., Bastidas, A., …, Beltran, R.S.. (2024). Long-term studies should provide structure for inclusive education and professional development. Ecology Letters.
- Ellis, A.A., Beck, J.N., Howard, E.A., Rabearisoa, A.L., Alissa, L.M., …, Croll, D.A.. (2024). Coalition-building for labor actions in life sciences departments: lessons from the largest academic strike in history. BioScience.
- Beltran, R.S., Kilpatrick, A.M., Picardi, S., Abrahms, B., Barrile, G.M., …, Robinson, P.W.. (2024). Maximizing biological insights from instruments attached to animals. Trends in Ecology & Evolution.
- Payne, A.R., Czapanskiy, M.F., Kilpatrick, A.M., Robinson, P.W., Munro, C., …, Beltran, R.S.. (2024). Reproductive success and offspring survival decline for female elephant seals past prime age. Journal of Animal Ecology.
- Markowitz, T.M., Keener, W., Webber, M.A., Payne, A.R., Lane, R.S., Fahlbusch, J.A., Calambokidis, J.. (2024). New urban habitat for endangered humpback whales: San Francisco Bay. Aquatic Conservation: Marine and Freshwater Ecosystems.
- Cronin, M.R., Zavaleta, E.S., Beltran, R.S., Esparza, M., Payne, A.R., …, Jones, M.S.. (2024). Testing the effectiveness of interactive training on sexual harassment and assault in field science. Scientific reports.
- Abdel-Raheem, S.T., Payne, A.R., Rivera, M., Sturdivant, K., W., …, Beltran, R.. (2023). Oceanography’s Diversity Deficit: Identifying and Addressing Challenges for Marginalized Groups. Oceanography.
- Webber, M.A., Keener, W., Spears, A.C., Cotter, M.P., Lane, R.S., Payne, A.R., Markowitz, T.M.. (2023). New Record of California Coastal Bottlenose Dolphins (Tursiops truncatus) in Offshore Waters. Aquatic Mammals.