Skip to content

Commit cb69d11

Browse files
committed
post meeting
1 parent af7cf45 commit cb69d11

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

inst/tutorials/introduction-to-python/tutorial.Rmd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,16 @@ description: Tutorial for introducing students to the Python language.
2424
Sys.setenv(RETICULATE_AUTOCONFIGURE = "FALSE")
2525
2626
# ---- Safe CRAN mirror + interactive-only installs ----
27+
# DK: Why the if clause here?
28+
2729
if (is.null(getOption("repos")["CRAN"]) || !nzchar(getOption("repos")["CRAN"])) {
2830
options(repos = c(CRAN = "https://cloud.r-project.org"))
2931
}
32+
33+
# DK: What happens if all the packages are installed?
34+
35+
# Does interactive produce false here? And therefore no installs are ever done? Need to test that this works by removing some of the packages and running it. Do we need this section at all?
36+
3037
needed <- c("learnr", "tutorial.helpers", "knitr", "reticulate")
3138
to_install <- setdiff(needed, rownames(installed.packages()))
3239
if (interactive() && length(to_install)) {
@@ -46,6 +53,9 @@ learnr::tutorial_options(
4653
4754
# ---- Environment flags ----
4855
is_windows <- identical(.Platform$OS.type, "windows")
56+
57+
# Do we need in_ci? What does it mean?
58+
4959
in_ci <- identical(tolower(Sys.getenv("CI")), "true") ||
5060
identical(tolower(Sys.getenv("R_CMD_CHECK")), "true") ||
5161
!interactive()

0 commit comments

Comments
 (0)