Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further detail on using RStudio to edit an existing lesson #172

Open
SJaffa opened this issue Nov 10, 2023 · 2 comments
Open

Further detail on using RStudio to edit an existing lesson #172

SJaffa opened this issue Nov 10, 2023 · 2 comments
Assignees

Comments

@SJaffa
Copy link

SJaffa commented Nov 10, 2023

1. Open the lesson in RStudio (or whatever you use for R)

As someone totally new to R and RStudio, how do I "open a lesson in RStudio"? I have a lesson repo cloned to my local machine but how do I get RStudio to open it?
Some instructions covering:

  • how to open RStudio in a particular folder
  • how to change your working directory in RStudio

would be helpful.

@ErinBecker ErinBecker self-assigned this Nov 14, 2023
@ErinBecker
Copy link
Contributor

Hi @SJaffa - thanks for the great question. There are two ways to open a lesson in RStudio.

  1. If your lesson has a .Rproj file, you can double click that file in your file browser and it will open in RStudio.
  2. If your lesson doesn't have a .Rproj file, you can navigate to your local lesson repository in RStudio by using the setwd() command. Within setwd() you will enter the path to your lesson repository, in quotations, for example setwd("~/Documents/shell-novice").

Using either of the above options to open the lesson in RStudio, you can then build the lesson using sandpaper::build_lesson(). The lower right hand corner of RStudio has a Files tab that you can use to navigate to and open individual files within your lesson repository for editing.

Please let me know if this information was helpful. I will leave this issue open until these instructions have been incorporated into the documentation.

@SJaffa
Copy link
Author

SJaffa commented Nov 16, 2023

Yes that's great, thanks. If you don't want to add too much extra material to the lesson maybe a link to a good RStudio beginners tutorial would be appropriate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants