Learn R Programming

rmdHelpers (version 1.3.1)

refNote: Generate a popup reference note

Description

Generates the html needed to include a popup reference note. Note requires inclusion of javascript libraries for this to function.

Usage

refNote(text = "This is a test note", number = "*")

Value

The html for the popup note

Arguments

text

Note to include in popup. Line breaks occasionally cause problems. As this is generally for short notes; I have not come up with a general solution yet. If your note text is complicated, ensure that you check the result.

number

The label to identify the note in the text.

Author

Mark Peterson

References

This was based on the popups on the https://what-if.xkcd.com/ site

Examples

Run this code
cat(refNote())

cat(refNote("Any text can go in here", 42))

Run the code above in your browser using DataLab