Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
^\.github$
^.*\.Rproj$
^\.Rproj\.user$
*.html
.*\.html$
File renamed without changes.
6 changes: 4 additions & 2 deletions modules/_github_username.Rmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
```{r github-username-setup, include=FALSE}
# Read GitHub usernames from CSV
tryCatch({
github_users <- read.csv("github_usernames.csv", stringsAsFactors = FALSE)
csv_path <- system.file("extdata", "github_usernames.csv", package = "quiz")
github_users <- read.csv(csv_path, stringsAsFactors = FALSE)
# Create choices with display format: "First Last (username)"
username_choices <- setNames(
github_users$GitHub.Username,
Expand Down Expand Up @@ -40,7 +41,8 @@ div(
# Read GitHub usernames in server context
username_choices <- reactive({
tryCatch({
github_users <- read.csv("modules/github_usernames.csv", stringsAsFactors = FALSE)
csv_path <- system.file("extdata", "github_usernames.csv", package = "quiz")
github_users <- read.csv(csv_path, stringsAsFactors = FALSE)
# Create choices with display format: "First Last (username)"
setNames(
github_users$GitHub.Username,
Expand Down
Loading