Skip to content

Commit

Permalink
Merge branch 'main' into ryan-titles
Browse files Browse the repository at this point in the history
  • Loading branch information
dajmcdon authored Dec 8, 2024
2 parents 29fbd0d + 610f000 commit f76b2dd
Show file tree
Hide file tree
Showing 10 changed files with 440 additions and 249 deletions.
107 changes: 68 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ help! Please take your time and follow the steps below. If you encounter
any issues or need extra help, feel free to reach out–our volunteers are
available to assist during setup and throughout the workshop.

## 1. **Download the Repository (For Beginners)**
## 0. System requirements

We assume that you have [R](https://cran.rstudio.com) installed.

We also assume that you use
[RStudio](https://posit.co/download/rstudio-desktop/).

If you’re more familiar with a different IDE (VSCode, Emacs, etc.),
that’s fine

## 1. Download the repository (beginner option)

If you’re new to GitHub or prefer not to use command-line tools, the
easiest way to get started is by downloading the repository as a ZIP
Expand All @@ -17,66 +27,85 @@ file.

1. On the [InsightNet Workshop 2024 GitHub
repository](https://github.com/cmu-delphi/insightnet-workshop-2024).
2. Click the green **Code** button located at the top right of this
repository.
2. Click the green <kbd>\<\> Code ▾</kbd> button located at the top
right of this repository.
3. In the dropdown menu, select **Download ZIP**.
4. Once downloaded, extract the ZIP file to a folder on your local
machine.
5. Open the extracted folder, and you’re all set!

You can now open the project files locally and start working with them.
You can now open the `insightnet-workshop-2024.Rproj` file and start
working with them.

------------------------------------------------------------------------
## 1. Clone or fork the repository (advanced options)

## 2. **Clone or Fork the Repository (For Advanced Users)**
If you’re familiar with `git`, cloning or forking the repository is a
more flexible option. This will allow you to stay up to date with the
latest changes and contribute to the project directly.

If you’re familiar with Git, cloning or forking the repository is a more
flexible option. This will allow you to stay up to date with the latest
changes and contribute to the project directly.
### Steps for cloning the repo:

<!-- Cloning: You get a local copy of the repository (on your computer), but you're working directly with the original repo. If you want to contribute to the original, you'll either need write access or need to fork it.
Forking: You get a personal copy of the repository on GitHub under your account, and you have full control over this copy. From there, you can create a pull request to propose changes back to the original repo.
-->
<!-- You'll get a local copy of the repository. -->

### **Cloning the Repo**:
The RStudio way:

<!-- You'll get a local copy of the repository. -->
1. On the [InsightNet Workshop 2024 GitHub
repository](https://github.com/cmu-delphi/insightnet-workshop-2024).
2. Click the green <kbd>\<\> Code ▾</kbd> button located at the top
right of this repository.
3. Then in RStudio, choose “New project” \> “Version Control” \> “Git”
and paste the address.
4. Choose a location on your machine where you want the files to be.
5. Select “Create Project”.

1. Open a terminal or command prompt on your computer.
2. Navigate to the folder where you want to store the project.
3. Run the following command:
The Command Line way:

``` bash
git clone https://github.com/cmu-delphi/insightnet-workshop-2024.git
```
1. On the [InsightNet Workshop 2024 GitHub
repository](https://github.com/cmu-delphi/insightnet-workshop-2024).
2. Click the green <kbd>\<\> Code ▾</kbd> button located at the top
right of this repository.
3. Open a terminal or command prompt on your computer.
4. Navigate to the folder where you want to store the project.
5. Run
`git clone https://github.com/cmu-delphi/insightnet-workshop-2024.git`
6. Once cloning is complete, navigate into the project folder:
`cd insightnet-workshop-2024`

Once cloning is complete, navigate into the project folder:
### Steps for forking the repo (requires a personal GitHub account):

``` bash
cd insightnet-workshop-2024
```
1. In the top right corner of this GitHub repository, click the grey
<kbd>⑂ Fork ▾</kbd> button.
2. Proceed from Step 2 in either the “Cloning” or even “Download Zip”
options. You’ll just be working from your own remote copy rather our
version of the materials.

### **Forking the Repo**:
## 2. Install required `R` packages

1. In the top right corner of this Github repository, click the Fork
button.
2. Once the repository is forked, you can either:
- **Clone** your forked version to your local machine by using
GitHub Desktop or the terminal:
We will use a <span class="tertiary">lot</span> of packages. We’ve tried
to make it so you can get them all at once (with the right versions)

``` bash
git clone https://github.com/your-username/insightnet-workshop-2024.git
```
🤞 We hope this works… 🤞

- Alternatively, you can download it as a ZIP file by clicking
**Code**\> **Download ZIP** on your forked repository page.
3. After cloning or downloading, navigate into the project folder:
In RStudio:

``` bash
cd insightnet-workshop-2024
``` r
install.packages("pak") # good for installing from non-CRAN sources
pak::pkg_install("cmu-delphi/InsightNetFcast24", dependencies = TRUE)
InsightNetFcast24::verify_setup()
```

### **Get Help from Our Volunteers:**
Hopefully, you see:

✔ You should be good to go!

Ask for help if you see something like:

Error in `verify_setup()`:
! The following packages do not have the correct version:
ℹ Installed: epipredict 0.2.0.
ℹ Required: epipredict == 0.1.0.

## ✋ Getting help from our volunteers

If you encounter any issues or would like assistance with setting things
up, don’t hesitate to reach out. We have a fantastic group of volunteers
Expand Down
116 changes: 84 additions & 32 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,110 @@ title: "Setup Instructions for Insight Net Workshop 2024"
format: gfm
---

Welcome to the Insight Net Workshop 2024 Github Repository. We've made it easy for you to get started with this project, and we're happy to help! Please take your time and follow the steps below. If you encounter any issues or need extra help, feel free to reach out--our volunteers are available to assist during setup and throughout the workshop.
Welcome to the Insight Net Workshop 2024 Github Repository. We've made it easy
for you to get started with this project, and we're happy to help! Please take
your time and follow the steps below. If you encounter any issues or need extra
help, feel free to reach out--our volunteers are available to assist during
setup and throughout the workshop.

## 1. **Download the Repository (For Beginners)**
## 0. System requirements

If you're new to GitHub or prefer not to use command-line tools, the easiest way to get started is by downloading the repository as a ZIP file.
We assume that you have [R](https://cran.rstudio.com) installed.

We also assume that you use [RStudio](https://posit.co/download/rstudio-desktop/).

If you're more familiar with a different IDE (VSCode, Emacs, etc.), that's fine

## 1. Download the repository (beginner option)

If you're new to GitHub or prefer not to use command-line tools, the easiest way
to get started is by downloading the repository as a ZIP file.

### Steps:
1. On the [InsightNet Workshop 2024 GitHub repository](https://github.com/cmu-delphi/insightnet-workshop-2024).
2. Click the green **Code** button located at the top right of this repository.
2. Click the green <kbd><> Code ▾</kbd> button located at the top right of this repository.
3. In the dropdown menu, select **Download ZIP**.
4. Once downloaded, extract the ZIP file to a folder on your local machine.
5. Open the extracted folder, and you’re all set!

You can now open the project files locally and start working with them.
You can now open the `insightnet-workshop-2024.Rproj` file and start working
with them.

---

## 2. **Clone or Fork the Repository (For Advanced Users)**
## 1. Clone or fork the repository (advanced options)

If you're familiar with Git, cloning or forking the repository is a more flexible option. This will allow you to stay up to date with the latest changes and contribute to the project directly.
If you're familiar with `git`, cloning or forking the repository is a more flexible
option. This will allow you to stay up to date with the latest changes and
contribute to the project directly.

<!-- Cloning: You get a local copy of the repository (on your computer), but you're working directly with the original repo. If you want to contribute to the original, you'll either need write access or need to fork it.
Forking: You get a personal copy of the repository on GitHub under your account, and you have full control over this copy. From there, you can create a pull request to propose changes back to the original repo.
-->

### **Cloning the Repo**:
### Steps for cloning the repo:
<!-- You'll get a local copy of the repository. -->

The RStudio way:

1. On the [InsightNet Workshop 2024 GitHub repository](https://github.com/cmu-delphi/insightnet-workshop-2024).
1. Click the green <kbd><> Code ▾</kbd> button located at the top right of this repository.
1. Then in RStudio, choose "New project" > "Version Control" > "Git" and paste the address.
1. Choose a location on your machine where you want the files to be.
1. Select “Create Project”.

The Command Line way:

1. On the [InsightNet Workshop 2024 GitHub repository](https://github.com/cmu-delphi/insightnet-workshop-2024).
1. Click the green <kbd><> Code ▾</kbd> button located at the top right of this repository.
1. Open a terminal or command prompt on your computer.
2. Navigate to the folder where you want to store the project.
3. Run the following command:
```bash
git clone https://github.com/cmu-delphi/insightnet-workshop-2024.git
```
Once cloning is complete, navigate into the project folder:
```bash
cd insightnet-workshop-2024
1. Navigate to the folder where you want to store the project.
1. Run `git clone https://github.com/cmu-delphi/insightnet-workshop-2024.git`
1. Once cloning is complete, navigate into the project folder: `cd insightnet-workshop-2024`


### Steps for forking the repo (requires a personal GitHub account):
1. In the top right corner of this GitHub repository, click the grey <kbd>⑂ Fork ▾</kbd> button.
2. Proceed from Step 2 in either the "Cloning" or even "Download Zip" options.
You'll just be working from your own remote copy rather our version of the materials.

## 2. Install required `R` packages

We will use a [lot]{.tertiary} of packages. We've tried to make it so you can
get them all at once (with the right versions)

🤞 We hope this works... 🤞


In RStudio:

```{r}
#| eval: false
install.packages("pak") # good for installing from non-CRAN sources
pak::pkg_install("cmu-delphi/InsightNetFcast24", dependencies = TRUE)
InsightNetFcast24::verify_setup()
```

### **Forking the Repo**:
1. In the top right corner of this Github repository, click the Fork button.
2. Once the repository is forked, you can either:
- **Clone** your forked version to your local machine by using GitHub Desktop or the terminal:
```bash
git clone https://github.com/your-username/insightnet-workshop-2024.git
Hopefully, you see:
```{r}
#| message: true
#| echo: false
cli::cli_alert_success("You should be good to go!")
```
- Alternatively, you can download it as a ZIP file by clicking **Code** --> **Download ZIP** on your forked repository page.
3. After cloning or downloading, navigate into the project folder:
```bash
cd insightnet-workshop-2024

Ask for help if you see something like:
```{r}
#| error: TRUE
#| echo: false
verify_setup <- function() {
cli::cli_abort(c(
"The following packages do not have the correct version:",
"i" = "Installed: {.pkg epipredict 0.2.0}.",
"i" = "Required: {.pkg epipredict == 0.1.0}."
))
}
verify_setup()
```

### **Get Help from Our Volunteers:**

If you encounter any issues or would like assistance with setting things up, don't hesitate to reach out. We have a fantastic group of volunteers available who can help guide you through the process.
## ✋ Getting help from our volunteers

If you encounter any issues or would like assistance with setting things up,
don't hesitate to reach out. We have a fantastic group of volunteers available
who can help guide you through the process.
4 changes: 2 additions & 2 deletions _freeze/slides/day1-morning/execute-results/html.json

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f76b2dd

Please sign in to comment.