Skip to content
R in 3 Months is now open for twice-annual registration. Learn more.
R for the Rest of Us Logo

This lesson is locked

Get access to all lessons in this course.

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Welcome to section 1 of the course! The materials for this section are in this GitHub repo.

Your Turn

After you download or clone the materials from the GitHub repo for this section of the course, open the entire project by clicking 01_avalanchr.Rproj and then work in the exercises.Rmd file.

  • Load usethis and devtools if you haven’t.

  • Open the DESCRIPTION file and take a look. It’s very generic!

  • Run edit_r_profile(). Copy and paste this code into your R profile, but change it to your name and email. If you would like to add your ORCID ID see ?use_description for an example for an example that includes that.

  • Then, restart your R session Session > Restart R.
    If you don’t want to change your R profile, you can just run the code in the console without running edit_r_profile() or restarting

  • When you’ve restarted, run use_description() to replace the DESCRIPTION file.

  • Open the DESCRIPTION file and take a look around.

Your Turn 1 Stretch Goal

  • Read the help page for use_usethis(). If there are any of these that you’d like available in all interactive sessions, run the function to get the related code and add it to your R Profile.

Learn More

The best place to learn more about these packages is their websites (devtools/usethis) or the Setup chapter of the R Packages book.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.