Companion Notebook FAQ

Author

Adam Gilbert

The following are answers to Frequently Asked Questions

FAQ

QUESTION 1. – Can I, or my students make changes to these files?

  • Yes! The files you see here are in a copied workspace specific to your account. Everyone can (and should) make changes freely and independently of one another. You can also upload, create, and save new files as well. This space is yours!

QUESTION 2. – Is it possible to download files out of Posit Cloud?

  • Yes! Use the Files tab in the lower-right pane of RStudio. Check off the files you want to download and then use the More button (gear icon) and choose Export. If you export multiple files, they’ll be zipped and you’ll need to unzip them on your computer. If you prefer, you can download a single file at a time to avoid the need to unzip.

QUESTION 3. – Is it possible to assign these notebooks and obtain a graded result for each student?

  • Yes! Below are the steps to do it.

    1. Students generate the hash code at the end of their notebook, using the Generate button.
    2. Have students copy the hash code using the clipboard icon at the top-right of the output cell containing the generated hash code.
    3. Copy the contents of this grading folder from Google Drive. You’ll find an R script and a Google Form in that folder.
    4. The grading script contains instructions for use in lines 1 - 30.

QUESTION 4. – Is it possible to install these notebooks into a local R installation so that I don’t need to use Posit Cloud?

  • Yes! Follow the steps below, assuming that you already have R and RStudio installed.

    1. Open RStudio
    2. Install the “remotes” package using: install.packages(“remotes”)
    3. Install the “AppliedStatsInteractive” package using: remotes::install_github(“agmath/AppliedStatsInteractive”)
    4. Install Colin Rundel’s learnrhash package using: remotes::install_github(“rundel/learnrhash”)
    5. You should now have the notebooks installed and accessible via your Tutorial pane in RStudio.

QUESTION 5. – Is it possible to contribute to this project?


QUESTION 6. – Can I make changes to these notebooks to better suit my own class?

  • Yes! Follow the steps below, assuming that you already have R, RStudio, and git connected to RStudio:

    1. Fork the AppliedStatsInteractive GitHub Repository.
    2. Create a new RProject from your cloned copy of the repo. Do this from RStudio by going to File -> New Project, choosing from Version Control, using git, and paste the URL to your forked version of the repository in the Repository URL field.
    3. All of the notebooks are contained in the “inst" subdirectory. Each notebook has its own folder. Edit the corresponding Rmd file and use the green”Run Document” button to build the updated tutorial with your changes.
    4. Use the git tab to commit and push changes to your repository.
    5. Have your students install your version of the notebooks using: remotes::install_github(“YOUR_GitHub_Username/AppliedStatsInteractive”)
    6. They may also need to install Colin Rundel’s learnrhash package separately, using: remotes::install_github(“rundel/learnrhash”)
    7. Once these steps are completed, your students should be able to launch your tutorials from the Tutorials tab of the top-right pane in RStudio.