Skip to content

Adjust tutorial template for correct ordering of dependency loading #499

Closed

Description

In google chrome console window, it shows "ReferenceError: $ is not defined". I guess it is because the script below loads before jquery. I am using latest version of rmarkdown which fixed Invalid HTML code. PS - It also could not find favicon.

$(document).ready(function () {
--
  | window.buildTabsets("section-TOC");
  | });


---
title: "Hello, Tutorial!"
output: learnr::tutorial
runtime: shiny_prerendered
---

```{r setup, include=FALSE}
library(learnr)
```

This code computes the answer to one plus one, change it so it computes two plus two:

```{r addition, exercise=TRUE}
1 + 1
```

Activity

  1. changed the title [-]ReferenceError: $ is not defined[/-] [+]Adjust tutorial template for correct ordering of dependency loading[/+] on Feb 26, 2021
  2. gadenbuie commented on Feb 26, 2021

    @gadenbuie
    Member

    We'll need to update the learnr tutorial template in line with the changes from rstudio/rmarkdown#1942 or we'll wait to see if this is resolved upstream in rmarkdown.

  3. added a commit that references this issue on Mar 1, 2021
    1a364a1
  4. added a commit that references this issue on Mar 10, 2021
    ef2ec3c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions