{"id":50948821,"url":"https://github.com/oduerr/idpedu","last_synced_at":"2026-06-17T23:04:31.990Z","repository":{"id":20733985,"uuid":"24018230","full_name":"oduerr/idpedu","owner":"oduerr","description":"Usefull tools for teaching statistics","archived":false,"fork":false,"pushed_at":"2025-08-12T11:57:51.000Z","size":3126,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-15T05:40:53.846Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oduerr.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-09-14T09:25:53.000Z","updated_at":"2025-08-12T11:57:54.000Z","dependencies_parsed_at":"2025-06-22T16:36:31.788Z","dependency_job_id":null,"html_url":"https://github.com/oduerr/idpedu","commit_stats":null,"previous_names":["oliver4242/idpedu"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/oduerr/idpedu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oduerr%2Fidpedu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oduerr%2Fidpedu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oduerr%2Fidpedu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oduerr%2Fidpedu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oduerr","download_url":"https://codeload.github.com/oduerr/idpedu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oduerr%2Fidpedu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34468784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-17T23:04:31.333Z","updated_at":"2026-06-17T23:04:31.978Z","avatar_url":"https://github.com/oduerr.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"idpedu\n======\n\nUsefull tools for teaching statistics.\n\n## Install from the v0.2.0 release\n\n- From release asset:\n```r\ninstall.packages(\"https://github.com/oduerr/idpedu/releases/download/v0.2.0/idpedu_0.2.0.tar.gz\", repos = NULL, type = \"source\")\nlibrary(idpedu)\n```\n\n- Or from the tagged commit:\n```r\nif (!requireNamespace(\"remotes\", quietly = TRUE)) install.packages(\"remotes\")\nremotes::install_github(\"oduerr/idpedu@v0.2.0\")\nlibrary(idpedu)\n```\n\n## Compile a worksheet\nThe new command `create_workbook` renders HTML and PDF files from a list of tasks. Example tasks (`exercise1.qmd`, `exercise2.qmd`, `exercise3.qmd`) live under the repository fixtures:\n\n\n### Example tasks:\n- Example tasks (fixtures): https://github.com/oduerr/idpedu/tree/master/tests/testthat/fixtures\n- Raw links for remote usage:\n  - https://raw.githubusercontent.com/oduerr/idpedu/master/tests/testthat/fixtures/exercise1.qmd\n  - https://raw.githubusercontent.com/oduerr/idpedu/master/tests/testthat/fixtures/exercise2.qmd\n  - https://raw.githubusercontent.com/oduerr/idpedu/master/tests/testthat/fixtures/exercise3.qmd\n\n\n### Tips for developing the worksheets:\n\n#### Include solutions in the worksheet \n\n- Inline (recommended for short answers):\n```r\n[Solution. The quadratic formula is $x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$.]{.solution}\n```\n\n- Block (for longer solutions):\n```r\n::: {.solution}\nThis is a block solution with math: $a^2 + b^2 = c^2$.\n:::\n``` \n(see below).\n\n#### Code chunks\n\n- Use `echo=lsg` and/or `eval=lsg` to control the visibility of the solutions.\n\n```\n  ```{r, echo=lsg, eval=lsg}\n  # Code chunk with solutions\n  ```\n\n\n\n\n\n\n\n\n\n\n- Use the `quarto` package to preview the changes. RStudio will do as well. Much faster then compiling 'pdf'\n```bash\nquarto preview tests/testthat/fixtures/exercise1.qmd\n```\n\n\n### Compile a worksheet\n```r\n  \n  ### Local Files (if you cloned the repo)\n  tasks = c(\n   \"tests/testthat/fixtures/exercise1.qmd\",\n   \"tests/testthat/fixtures/exercise2.qmd\"\n  ) # list of tasks (can also be a single task)\n  \n  ### Remote Files (alternatively)\n  tasks = c(\n   \"https://raw.githubusercontent.com/oduerr/idpedu/master/tests/testthat/fixtures/exercise1.qmd\",\n   \"https://raw.githubusercontent.com/oduerr/idpedu/master/tests/testthat/fixtures/exercise2.qmd\"\n  ) # list of tasks (can also be a single task)\n  \n  \n  title = \"Week 1 (Simple Stuff)\" # Title of the worksheet\n  fname='week1' # Name of the file(s) which are produces\n  # Stays the same for all worksheets for a given course\n  header_file = \"da.qmd\" # To change / add go into repository inst/extdata\n  \n  create_workbook(tasks=tasks, title = title, fname=fname,  header_file=header_file)\n```\n\n\n## Tips for developing the worksheets:\n\n- Use the `quarto` package to preview the changes. RStudio will do as well. Much faster then compiling 'pdf'\n```bash\nquarto preview tests/testthat/fixtures/exercise1.qmd\n```\n\n## Thinks to consider\n\n### Selfcontained\nThe html files are rendered to be selfcontained. This means that the images are embedded in the html file. This is good for distribution, but bad for the size of the html file. If you want to reduce the size of the html file you can use the `selfcontained = FALSE` option in create_workbook. While being selfcontained these file are not rendered as html in github, you have to dowload then.\n\n### Adding a custom header\nThe header file is a markdown file which is included at the beginning of the worksheet. Add a custom qmd-file like `custom.qmd` in the inst/extdata folder exchange `header_file = \"custom.qmd\"`\n\n\n## Tips for developing the package:\nYou can use `devtools::load_all()` to load the chances.\n\n## Callouts (HTML/PDF)\n\nYou can use Quarto callouts in tasks; they render in both HTML and PDF:\n\n```markdown\n::: {.callout-note}\n#### Hint\nRemember to center your variables.\n:::\n\n::: {.callout-tip}\nYou can vectorize this step. [Answer: 42]{.solution}\n:::\n\n::: {.callout-warning}\nWatch numeric stability here.\n:::\n\n::: {.callout-important collapse=\"true\"}\n#### Read this first\nSetup instructions...\n:::\n```\n\nHTML math is enabled via KaTeX in `inst/extdata/da.qmd` and `inst/extdata/stat.qmd`. For easier hosting, these headers set `self-contained: false`.\n\n- Note: For reliable styling of HTML callouts, render with `selfcontained = TRUE` (or set `format: html: self-contained: true` in the header). Some environments may not pick up external assets when not self-contained.\n\n\n\n\n\n\n\nx\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foduerr%2Fidpedu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foduerr%2Fidpedu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foduerr%2Fidpedu/lists"}