Skip to content

Commit e0a86c9

Browse files
committed
Generalize IDE references and add IDE comparison
- Changed 'RStudio' to 'Development environments (IDEs)' in schedule - Expanded IDE acronym early for clarity - Added IDE comparison section with image from tdscience - Mentioned VS Code and Positron alongside RStudio - Added link to detailed IDE comparison at tdscience.github.io/course - Created language-comparison.csv comparing R and Python - Updated prerequisites to mention multiple IDE options - Made tasks.qmd IDE-agnostic where appropriate
1 parent e8732a6 commit e0a86c9

File tree

7 files changed

+52
-11
lines changed

7 files changed

+52
-11
lines changed

00_data/language-comparison.csv

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Attribute,R,Python
2+
Primary use,Statistical computing & data analysis,General purpose programming & data science
3+
Syntax,Domain-specific for statistics,"General purpose, readable"
4+
Data structures,"Data frames, vectors, lists","Pandas DataFrames, NumPy arrays, lists"
5+
Package ecosystem,CRAN (~20k packages),PyPI (~500k packages)
6+
IDE support,"RStudio, Positron, VS Code","VS Code, PyCharm, Jupyter, Positron"
7+
Learning curve,Moderate (statistics focus),Moderate (programming focus)
8+
Visualization,"ggplot2, base R graphics","matplotlib, seaborn, plotly"
9+
Statistical analysis,Excellent built-in support,Requires packages (scipy, statsmodels)
10+
Machine learning,"tidymodels, caret",scikit-learn
11+
Community,Academic & statistical focus,Broad & diverse
12+
Performance,Vectorized operations fast,Vectorized operations fast (NumPy)
13+
Quarto support,Native integration,Native integration
14+
Reproducibility,R Markdown/Quarto,Jupyter notebooks/Quarto
15+
Data manipulation,"dplyr, data.table","pandas, polars"

1-basics/slides.qmd

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ This section covers the essentials you need to get started with the concepts and
1010

1111
## Integrated Development Environments (IDEs)
1212

13-
Your toolkit for writing code
13+
An **IDE** (Integrated Development Environment) is your toolkit for writing code efficiently.
1414

1515
------------------------------------------------------------------------
1616

1717
### RStudio
1818

19+
Popular IDE specifically designed for R programming
20+
1921
![](images/paste-1.png)
2022

2123
----
@@ -31,6 +33,8 @@ Your toolkit for writing code
3133

3234
### VS Code
3335

36+
Versatile IDE supporting multiple languages including R and Python
37+
3438
![](images/paste-2.png)
3539

3640
----
@@ -45,6 +49,14 @@ Your toolkit for writing code
4549

4650
------------------------------------------------------------------------
4751

52+
### Positron
53+
54+
New IDE from Posit (makers of RStudio) supporting R and Python equally
55+
56+
**Note**: Currently in beta but shows great promise for bilingual data scientists
57+
58+
------------------------------------------------------------------------
59+
4860
## The fundamentals of R
4961

5062
- how to organize your work

1-basics/tasks.qmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@ title: "The Basics - Tasks"
55
We are going to start from scratch and build up some basic skills in R. Follow the steps below to get started.
66

77
::: {.callout-tip}
8-
Get R and RStudio running (see Prerequisites if needed) before.
8+
Get R and your IDE (RStudio, VS Code, or Positron) running (see Prerequisites if needed) before starting.
99
:::
1010

1111
Setting up your first(?) project:
1212

13-
1. In RStudio, go to `File` > `New Project...`.
13+
1. In your IDE (RStudio example shown), go to `File` > `New Project...`.
1414

1515
- Select `New Directory`.
1616
- Select `New Project`.
1717
- Name the project `DS-intro-2025` and choose a directory to save it in (your OneDrive might be a good choice).
1818
- Click `Create Project`.
19+
20+
**Note**: The exact steps may vary slightly in VS Code or Positron, but the concept of project organization remains the same.
1921

2022
2. Navigate to the `Files` tab, and create two folders in the project directory: `data` and `scripts`.
2123

collaboration.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ GitHub isn't just for storing code; it provides powerful tools for teamwork:
4040

4141
## Getting Started
4242

43-
To start using Git and GitHub, we recommend installing [GitHub Desktop](https://desktop.github.com/) or using the Git integration within RStudio or VS Code.
43+
To start using Git and GitHub, we recommend installing [GitHub Desktop](https://desktop.github.com/) or using the Git integration within your IDE (RStudio, VS Code, or Positron).
4444

4545
For an ideal next step in your learning journey, check out the courses available at [GitHub Skills](https://skills.github.com/).
4646

images/ide-comparison.png

66.3 KB
Loading

index.qmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ In this practical, you'll get hands-on experience with data science tools. We'll
1717

1818
There are a number of languages that can be used for data science, including JavaScript/TypeScript, Julia, and MATLAB. However, the two most popular languages are **R** and **Python**. Both are excellent choices for data science, and each has its own strengths, as outlined below.
1919

20+
**Integrated Development Environments (IDEs):** An IDE is a software application that provides comprehensive facilities for writing, testing, and debugging code. Popular IDEs for data science include RStudio, VS Code, and Positron. See the [detailed IDE comparison](https://tdscience.github.io/course/s1.html) for more information.
21+
22+
![IDE Comparison: RStudio, Positron, and VS Code](images/ide-comparison.png){#fig-ide-comparison fig-align="center" width="80%"}
23+
2024
::: {.callout-tip}
2125
## R vs Python
2226

@@ -25,7 +29,7 @@ If you are unsure which language to pick, we recommend trying both for 10 minute
2529
**Why choose R?**
2630

2731
- **"Batteries included":** Base R has built-in support for data frames, reading data from URLs, and statistical models (like linear regression) without needing extra packages.
28-
- **RStudio IDE:** The premier environment for R is user-friendly and often feels familiar to those coming from MATLAB.
32+
- **Development environments:** RStudio and Positron provide excellent Integrated Development Environments (IDEs) for R that are user-friendly and often feel familiar to those coming from MATLAB.
2933
- **Stability:** You are less likely to encounter "dependency hell" because CRAN enforces strict checks on package compatibility.
3034
- **Community:** R has a massive community specifically focused on statistics and data visualization.
3135

@@ -49,7 +53,7 @@ If you are unsure which language to pick, we recommend trying both for 10 minute
4953
| Time | Activity |
5054
|------|----------|
5155
| 09:00 - 09:15 | **Welcome & Setup**: Introduction and getting ready |
52-
| 09:15 - 09:45 | **Basics**: RStudio, Quarto, and basic syntax |
56+
| 09:15 - 09:45 | **Basics**: Development environments (IDEs), Quarto, and basic syntax |
5357
| 09:45 - 10:30 | **Manipulation**: Cleaning and transforming data with dplyr |
5458
| 10:30 - 10:45 | *Break* |
5559
| 10:45 - 11:30 | **Visualisation**: Creating plots with ggplot2 |

prerequisites.qmd

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,24 @@ If you're using AppsAnywhere (available on university computers or your own lapt
1919

2020
This approach is recommended if you want more control over your installations and if you plan to continue using these tools after the session:
2121

22-
#### 1. R and RStudio
22+
#### 1. Development Environment (IDE)
23+
24+
An **IDE** (Integrated Development Environment) provides a comprehensive workspace for coding. Popular options include:
25+
26+
**For R:**
27+
- **RStudio Desktop** (free) from [Posit](https://posit.co/download/rstudio-desktop/) - Specifically designed for R
28+
- **Positron** from [Posit](https://github.com/posit-dev/positron) - New IDE supporting both R and Python (beta)
29+
30+
**For multiple languages:**
31+
- **VS Code** from [Microsoft](https://code.visualstudio.com/) - Versatile IDE with extensions for R, Python, and more
32+
33+
#### 2. Programming Languages
2334

2435
**R** is a programming language widely used for statistical computing and data science.
2536

2637
- Download R from [CRAN](https://cran.r-project.org/)
27-
- Download RStudio Desktop (free) from [Posit](https://posit.co/download/rstudio-desktop/)
28-
29-
#### 2. Python (Optional but Recommended)
3038

31-
**Python** is another popular language for data science.
39+
**Python** (Optional but Recommended) is another popular language for data science.
3240

3341
- Download Python from [python.org](https://www.python.org/downloads/) (version 3.8 or higher)
3442
- Or install via [Anaconda](https://www.anaconda.com/download) (includes many data science packages)

0 commit comments

Comments
 (0)