Skip to content

Interactive Console with Hint/Test Code Functionality? #2

@mattsigal

Description

@mattsigal

I have a slide with an interactive console working. This comes with four buttons on the bottom: Run Code, Test Code, Clear Output, and Get Hint.

I am trying to get the "Get Hint" button to work, as I would like to store some code in the hint to replace in the console (to show how it can be dynamically altered).

I've tried using the same syntax as from the quiz widget:

*** .hint
This is a hint

But even that causes the slideshow to crash with the following:

Error in if (input[[paste0("runCode", i)]] != 0) return(isolate({ : argument is of length zero
Error in if (input[[paste0("runCode", i)]] != 0) return(isolate({ : argument is of length zero

Is this simply not working at the moment, or am I missing something?

Thanks!

Matt

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