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

Rstudio24 #466

Merged
merged 2 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/RStudio/lab/RStudio_Lab.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ This is an R Markdown document. Markdown is a simple formatting syntax for autho

The way you can create a file like this in RStudio is: File → New File → R Markdown and then using the default or using a template.

Now we will install some packages! Note it may take ~5-10 minutes to run all these steps.
Now we will install some packages! Note it may take ~5-10 minutes to run all these steps. **You need to run these steps in the order listed.**

1) First copy and paste the following code into the console (the lower left panel/pane): <br>
1) First copy and paste the following code into the console (the lower left panel/pane) - **but do not copy the backticks**: <br>
`install.packages("remotes")`<br>
This code will install a package from CRAN called "remotes". <br>
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console.

2) Next copy and paste the following code again into the console (the lower left panel/pane): <br>
2) Next copy and paste the following code again into the console (the lower left panel/pane), **again do not copy the backticks**: <br>
`library(remotes)` <br>
This code loads the remotes package into memory- in other words we can use the functions within the package.<br>
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console.

3) Now install a package that the instructors made that is not on CRAN but on GitHub, by copy and pasting the code into the console. <br>
3) Now install a package that the instructors made that is not on CRAN but on GitHub, by copy and pasting the code into the console. We still don't want to copy the backticks. <br>
`install_github("jhudsl/jhur")`<br>
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console.

Expand Down
8 changes: 4 additions & 4 deletions modules/RStudio/lab/RStudio_Lab_Key.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ This is an R Markdown document. Markdown is a simple formatting syntax for autho

The way you can create a file like this in RStudio is: File → New File → R Markdown and then using the default or using a template.

Now we will install some packages! Note it may take ~5-10 minutes to run all these steps.
Now we will install some packages! Note it may take ~5-10 minutes to run all these steps. **You need to run these steps in the order listed.**

1) First copy and paste the following code into the console (the lower left panel/pane): <br>
1) First copy and paste the following code into the console (the lower left panel/pane) - **but do not copy the backticks**: <br>
`install.packages("remotes")`<br>
This code will install a package from CRAN called "remotes". <br>
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console.

2) Next copy and paste the following code again into the console (the lower left panel/pane): <br>
2) Next copy and paste the following code again into the console (the lower left panel/pane), **again do not copy the backticks**: <br>
`library(remotes)` <br>
This code loads the remotes package into memory- in other words we can use the functions within the package.<br>
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console.

3) Now install a package that the instructors made that is not on CRAN but on GitHub, by copy and pasting the code into the console. <br>
3) Now install a package that the instructors made that is not on CRAN but on GitHub, by copy and pasting the code into the console. We still don't want to copy the backticks.<br>
`install_github("jhudsl/jhur")`<br>
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console.

Expand Down