You can find exactly the same code and data at: https://github.com/hannahmetzler/CovidEmotionsTwitter/ (on the master branch)
If you prefer downloading data and scripts from the OSF:
Download and extract the files data.zip and analysis_folders.zip.
Place all content from these .zip files (folders and .Rmd files) into the same project folder, from which you want to run R.
Now use the different .R...