Follow along the notes in your local R studio:
https://gdgforscience.github.io/LLMs-from-R/
Or did you know you can use R from Google Colab:
https://colab.research.google.com/drive/1GOK7HjrNx5ud5Up4uL0mfCX1Y-ms-99i
And from Kaggle Notebooks:
https://www.kaggle.com/code/astrobutter/gdg-ai-for-science-llms-from-r