Skip to content

Commit c177880

Browse files
committed
Add news; first pass readme
1 parent 60ccc54 commit c177880

File tree

3 files changed

+32
-22
lines changed

3 files changed

+32
-22
lines changed

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# explorecourses (development version)
2+
3+
## Features
4+
5+
- Provides three main functions:
6+
- `fetch_all_courses()`: Fetches all courses from the ExploreCourses API for a set of departments (Default: all).
7+
- `fetch_department_courses()`: Fetches the courses for a specific department.
8+
- `fetch_departments()`: Fetches the list of departments from the ExploreCourses API.

README.Rmd

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ stats_and_math_courses <- fetch_all_courses(c("STATS", "MATH"), year = "20232024
6868

6969
This function is excellent for retrieving course information across multiple departments for a given academic year as it allows for parallel processing of the data.
7070

71-
If we know the department shortcode for a specific department, we
72-
can use the `fetch_department_courses()` function to retrieve the courses for that department. This function does not support parallel processing and is designed for fetching courses for a single department. For example, to retrieve all courses for the "STATS" department, we can use:
71+
For a single department, we can use the `fetch_department_courses()` function to
72+
retrieve the courses for that department in any academic year. This function's
73+
overhead is lower as it does not support parallel processing. For example, to
74+
retrieve all courses for the "STATS" department, we can use:
7375

7476
```{r}
7577
#| eval: false
@@ -113,13 +115,13 @@ list_cache() # List current cache
113115

114116
### Parallel Processing
115117

116-
We can speed up the process of fetching courses by using parallel processing.
117-
For the `fetch_all_courses()` function, we've set up parallel processing using
118-
the `furrr` package, which provides `purrr`'s functional interface to the
119-
`future` parallel processing library. As a result, we will be able to
120-
download and process all courses for every department in parallel. Moreover,
121-
we've set up progress reporting using the `progressr` package to track the
122-
progress of the parallel processing.
118+
We can speed up the process of fetching and transforming course data
119+
by using parallel processing. For the `fetch_all_courses()` function, we've
120+
set up parallel processing using the `furrr` package, which provides `purrr`'s
121+
functional interface to the `future` parallel processing library. As a result,
122+
we will be able to download and process all courses for every department in
123+
parallel. Moreover, we've set up progress reporting using the `progressr`
124+
package to track the progress of the parallel processing.
123125

124126
```{r}
125127
#| eval: false

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ This function is excellent for retrieving course information across
6363
multiple departments for a given academic year as it allows for parallel
6464
processing of the data.
6565

66-
If we know the department shortcode for a specific department, we can
67-
use the `fetch_department_courses()` function to retrieve the courses
68-
for that department. This function does not support parallel processing
69-
and is designed for fetching courses for a single department. For
70-
example, to retrieve all courses for the “STATS” department, we can use:
66+
For a single department, we can use the `fetch_department_courses()`
67+
function to retrieve the courses for that department in any academic
68+
year. This function’s overhead is lower as it does not support parallel
69+
processing. For example, to retrieve all courses for the “STATS”
70+
department, we can use:
7171

7272
``` r
7373
department_courses <- fetch_department_courses("STATS")
@@ -111,14 +111,14 @@ list_cache() # List current cache
111111

112112
### Parallel Processing
113113

114-
We can speed up the process of fetching courses by using parallel
115-
processing. For the `fetch_all_courses()` function, we’ve set up
116-
parallel processing using the `furrr` package, which provides `purrr`’s
117-
functional interface to the `future` parallel processing library. As a
118-
result, we will be able to download and process all courses for every
119-
department in parallel. Moreover, we’ve set up progress reporting using
120-
the `progressr` package to track the progress of the parallel
121-
processing.
114+
We can speed up the process of fetching and transforming course data by
115+
using parallel processing. For the `fetch_all_courses()` function, we’ve
116+
set up parallel processing using the `furrr` package, which provides
117+
`purrr`’s functional interface to the `future` parallel processing
118+
library. As a result, we will be able to download and process all
119+
courses for every department in parallel. Moreover, we’ve set up
120+
progress reporting using the `progressr` package to track the progress
121+
of the parallel processing.
122122

123123
``` r
124124
library(explorecourses)

0 commit comments

Comments
 (0)