R and ChatGPT (3/3)

Improve your R skills in entertaining, inspiring and supportive sessions moderated by your own colleagues.

Abby Onencan https://www.eur.nl/en/people/abby-onencan
04-30-2024

The NSC-R Tidy Tuesday workshop sessions are inspired by the Tidy Tuesday initiative, which is aimed at providing a safe and supportive forum for individuals to practice their data processing and visualization skills in R while working with real-world data.

This workshop (Tuesday April 30, 2024, 13:00-14:00 CET) was the last in a series of three about the use of ChatGPT in R. Together the three workshops form a beginners’ course on how to integrate ChatGPT when working with R. They were led by Abby Onencan.

The previous workshops in this course are on Monday April 2 and on Monday April 15, 13:00-14:00.

A complete description of all three sessions is in our post of April 2

Abby Onencan is a researcher at the Erasmus School of Law at Erasmus University Rotterdam. Her research focuses on industrial environmental harms, specifically those resulting from the production and use of PFAS. She is a member of the NSC-R Workshops team.

Materials

To consult the materials used in this third session, please

  1. Open RStudio
  2. Create a new R project named “GPTAutomation” and include the files from this folder (ZIP archive) or from this folder (RAR archive). Both are compressed archives and contain the same files. Use whichever is more convenient.
  3. Install the listed packages (in the new R project) and set the API key. The packages are “shiny”, “shiny.i18n”, “shinyjs”, “openai”, “httr”, “jsonlite”, “chatgpt”, “askgpt”, and “gptstudio”.

Citation

For attribution, please cite this work as

Onencan (2024, April 30). NSC-R Workshops: R and ChatGPT (3/3). Retrieved from https://nscrweb.netlify.app/posts/2024-04-30-nsc-r-tidy-tuesday/

BibTeX citation

@misc{onencan2024r,
  author = {Onencan, Abby},
  title = {NSC-R Workshops: R and ChatGPT (3/3)},
  url = {https://nscrweb.netlify.app/posts/2024-04-30-nsc-r-tidy-tuesday/},
  year = {2024}
}