-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
61 lines (50 loc) · 1.67 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# These are for admin tasks that really only need to be done once or twice
@_default:
just --list --unsorted
# Run build recipes and install the package
build: style document install-package
# Install the package and its dependencies
install-package:
#!/usr/bin/Rscript
devtools::install()
# Re-build Roxygen docs
document:
#!/usr/bin/Rscript
devtools::document()
# Run style formatter
style:
#!/usr/bin/Rscript
styler::style_pkg()
# Run the targets pipeline
run-targets: build
#!/usr/bin/Rscript
targets::tar_make()
# (INCOMPLETE) Create a draft email to remind participants of precourse tasks
draft-reminder-email: run-targets
#!/usr/bin/Rscript
participant_emails <- get_participant_emails()
r3admin::create_draft_reminder_email()
# Open up the webpage to create a GitHub organization account
create-org-in-gh:
xdg-open https://github.com/account/organizations/new?plan=free
# Create a GitHub issue for planning the next upcoming course
create-upcoming-planning-issue: build
#!/usr/bin/Rscript
r3admin::admin_create_planning_issue(
id = r3admin::get_upcoming_course()
)
# Create the PDF and HTML files used for putting people into the groups
create-group-names: run-targets
#!/usr/bin/Rscript
devtools::load_all()
precourse <- targets::tar_read(upcoming_precourse_survey)
number_groups <- ceiling(nrow(precourse) / 4)
even_number_people <- round(nrow(precourse) + 0.5)
group_names <- create_group_names(number_groups)
group_names_to_one_pdf(group_names)
Sys.sleep(1.5)
group_names_as_strips_html(group_names, number_participants = even_number_people)
# Run the targets pipeline
run-targets: build
#!/usr/bin/Rscript
targets::tar_make()