Wrapper for 'hypothes.is'

Add, share and manage annotations for 'Shiny' applications and R Markdown documents via 'hypothes.is'.


hypothesis

version

Overview

hypothesis R package allows you to add, share and manage annotations for Shiny applications and R Markdown documents. It is a wrapper of cool hypothes.is tool.

Installation

# Latest development version
remotes::install_github("r-world-devs/hypothesis")

Usage

Shiny

Just call useHypothesis() within the app UI.

You can also (optionally) use hypothesisOnOff to allow turning annotations feature on/off with the returned button.

library(shiny)
library(hypothesis)

ui <- fluidPage(
  useHypothesis(),
  hypothesisOnOff(TRUE),
  br(),
  "Hello There General Kenobi"
)

server <- function(input, output, session) {

}

shinyApp(ui, server)

R Markdown

Just place useHypothesis() in document R chunk.

hypothesisOnOff work great as well.

title: "Document" author: "Author" date: "9/21/2022" output: html_document

&#96&#96&#96{r setup, include=FALSE} library(hypothesis) knitr::opts_chunk$set(echo = TRUE) hypothesis::useHypothesIs() &#96&#96&#96

&#96r hypothesisOnOff(TRUE)&#96

Development

Rendering website

  1. Clone gh-pages branch as docs folder:
git clone -b gh-pages [email protected]:r-world-devs/hypothesis.git docs
  1. Render website pkgdown::build_site().
  2. Move to docs, commit and push.

Getting help

In a case you found any bugs, have feature request or general question please file an issue at the package Github. You may also contact the package author directly via email at [email protected].

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("hypothesis")

1.1.0 by Krystian Igras, 3 years ago


Browse source code at https://github.com/cran/hypothesis


Authors: Krystian Igras [cre, aut] , Adam Foryƛ [ctb] , Hypothes.is Project and contributors [cph] (hi_embed.js)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports rlang, magrittr, glue, htmlwidgets, jsonlite, htmltools, purrr, httr

Suggests shiny, testthat, withr, mockery, knitr, rmarkdown, pkgdown


See at CRAN