You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
70
70
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:
73
75
74
76
```{r}
75
77
#| eval: false
@@ -113,13 +115,13 @@ list_cache() # List current cache
113
115
114
116
### Parallel Processing
115
117
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.
0 commit comments