Skip to content

Instantly share code, notes, and snippets.

View trangdata's full-sized avatar
😅
|> log() == 💧log(😄)

Trang Le trangdata

😅
|> log() == 💧log(😄)
View GitHub Profile
@trangdata
trangdata / 01.heterocycles-code.md
Last active July 5, 2024 16:33
Distinct authors who have published in Heterocycles retrieved via OpenAlexR

Retrieve counts of unique authors who have published in Heterocycles

auts <- openalexR::oa_fetch(
  "works", 
  group_by = "authorships.author.id", 
  primary_location.source.id = "s27298842", 
  verbose = TRUE
)
#&gt; Requesting url: https://api.openalex.org/works?filter=primary_location.source.id%3As27298842&amp;group_by=authorships.author.id
#!/bin/bash
# put script at the same level with the directory that contains pdfs (e.g. my_pdfs)
# make my_pdfs the working directory
# To run this script, first, make it executable: chmod +x convert.sh
# Then run it: ./convert.sh
mkdir outputEPS
cp *.pdf outputEPS/
cd outputEPS