Skip to content

Commit

Permalink
Merge pull request #39 from jhudsl/cansavvy/coursera-functions
Browse files Browse the repository at this point in the history
Incorporate coursera functions
  • Loading branch information
cansavvy authored Sep 10, 2021
2 parents 5294d80 + a1fa752 commit b57e003
Show file tree
Hide file tree
Showing 7 changed files with 420 additions and 1 deletion.
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

0 comments on commit b57e003

Please sign in to comment.