Skip to content

Commit 851a3e2

Browse files
committed
update ignore
1 parent 0661a19 commit 851a3e2

34 files changed

+138
-473243
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
.Ruserdata
55
.DS_Store
66
docs/*
7+
CLAUDE.md
8+
.claude/

R/data.R

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,21 @@
302302
#' str(dataedu::all_files)
303303
"all_files"
304304

305+
#' Walkthrough 06 - Bluesky Data - Raw Posts
306+
#'
307+
#' Walkthrough 06 - Raw data accessed from Bluesky on #tidytuesday
308+
#'
309+
#'
310+
#' @name bluesky_posts
311+
#' @docType data
312+
#' @format Dataset of class \code{tibble}.
313+
#' @source Bluesky API
314+
#' @keywords datasets
315+
#' @examples
316+
#'
317+
#' str(dataedu::child_counts)
318+
"bluesky_posts"
319+
305320
#' Walkthrough 04 - Students with Disabilities Counts - Combined Data Frame
306321
#'
307322
#' Walkthrough 04 - Combined data frame containing students with disabilities

R/font_dataedu.R

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,27 @@ cabinproto <- proto::proto(expr={
1515
list.files(get_path())
1616
}
1717
load_font <- function(., font) {
18-
wd <- getwd()
1918
font_path <- get_path()
19+
20+
# Check if font path exists (may be empty during development)
21+
if (font_path == "" || !dir.exists(font_path)) {
22+
warning("Font path not found. The dataedu theme may not work correctly.",
23+
call. = FALSE)
24+
return(invisible(NULL))
25+
}
26+
27+
wd <- getwd()
28+
on.exit(setwd(wd)) # Ensure we always return to original directory
29+
2030
setwd(font_path)
2131
if (!file.exists(font)) {
22-
setwd(wd)
23-
stop("font doesn't exist...")
32+
warning("Font file '", font, "' doesn't exist.", call. = FALSE)
33+
return(invisible(NULL))
2434
}
35+
2536
sysfonts::font_add(family = sub("\\..*", "", font),
2637
regular = font)
2738
showtext::showtext_auto()
28-
setwd(wd)
2939
}
3040
})
3141

data-raw/wt01_online-science-motivation/processed/s12-course-data.csv

Lines changed: 3 additions & 29712 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)