Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate coursera functions #39

Merged
merged 6 commits into from
Sep 10, 2021
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
1 change: 1 addition & 0 deletions .github/workflows/render-leanpub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ jobs:
- name: Run leanbuild::bookdown_to_leanpub
run: |
Rscript -e "devtools::load_all('leanbuild'); leanbuild::bookdown_to_leanpub(footer_text = 'check if footer works')"
Rscript -e "devtools::load_all('leanbuild'); leanbuild::render_coursera(convert_quizzes = TRUE)"
1 change: 1 addition & 0 deletions .github/workflows/update-leanpub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- name: Run leanbuild::bookdown_to_leanpub
run: |
Rscript -e "devtools::load_all('leanbuild'); leanbuild::bookdown_to_leanpub(footer_text = '*Please provide any feedback with [this form!](https://forms.gle/hc8Xt3Y2Znjb6M4Y7) We appreciate your thoughts.*')"
Rscript -e "devtools::load_all('leanbuild'); leanbuild::render_coursera(convert_quizzes = TRUE)"
rm -r leanbuild


Expand Down
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Imports: googledrive,
dplyr,
httr,
didactr,
fs,
jsonlite,
utils,
tibble,
Expand Down
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ export(check_quiz)
export(check_quiz_attributes)
export(check_quiz_question_attributes)
export(check_quizzes)
export(convert_coursera_quizzes)
export(convert_footnotes)
export(convert_quiz)
export(convert_utube_link)
export(download_gs_file)
export(extract_quiz)
export(find_end_of_prompt)
export(find_quiz_indices)
export(get_bookdown_spec)
export(get_image_from_slide)
Expand All @@ -30,6 +33,7 @@ export(include_slide)
export(leanpub_check)
export(parse_quiz)
export(remove_yaml_header)
export(render_coursera)
export(replace_html)
export(replace_single_html)
export(set_knitr_image_path)
Expand Down
3 changes: 2 additions & 1 deletion R/aaa_utils.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

utils::globalVariables(c("num", "quiz_dir", "type_url", "file_name", "trimmed", "quiz"))
utils::globalVariables(c("num", "quiz_dir", "type_url", "file_name", "trimmed", "quiz",
"quiz_path", "type", "q_num", "verbose"))

# get script path and number of paragraphs
paragraph_from_script <- function(x) {
Expand Down
Loading