{"id":13425224,"url":"https://github.com/juba/robservable","last_synced_at":"2025-04-06T12:09:08.230Z","repository":{"id":40657966,"uuid":"271578280","full_name":"juba/robservable","owner":"juba","description":"Observable notebooks as R htmlwidgets","archived":false,"fork":false,"pushed_at":"2024-08-30T10:53:35.000Z","size":7261,"stargazers_count":164,"open_issues_count":7,"forks_count":11,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-30T09:08:26.415Z","etag":null,"topics":["htmlwidgets","observable","r","rstats"],"latest_commit_sha":null,"homepage":"https://juba.github.io/robservable/","language":"HTML","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/juba.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-06-11T15:13:18.000Z","updated_at":"2025-03-22T10:50:13.000Z","dependencies_parsed_at":"2023-02-17T17:46:00.247Z","dependency_job_id":"bfc9bebf-1743-4c05-9c4e-d5cf9aa44179","html_url":"https://github.com/juba/robservable","commit_stats":{"total_commits":280,"total_committers":4,"mean_commits":70.0,"dds":"0.34285714285714286","last_synced_commit":"258467fdabe5d6ae0d1025447329c609921fc9db"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juba%2Frobservable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juba%2Frobservable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juba%2Frobservable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juba%2Frobservable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juba","download_url":"https://codeload.github.com/juba/robservable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478323,"owners_count":20945266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["htmlwidgets","observable","r","rstats"],"created_at":"2024-07-31T00:01:07.718Z","updated_at":"2025-04-06T12:09:08.187Z","avatar_url":"https://github.com/juba.png","language":"HTML","readme":"\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/robservable)](https://CRAN.R-project.org/package=robservable)\n[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/last-month/robservable)](https://CRAN.R-project.org/package=robservable)\n[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#maturing)\n[![R build status](https://github.com/juba/robservable/workflows/R-CMD-check/badge.svg)](https://github.com/juba/robservable/actions)\n\u003c!-- badges: end --\u003e\n\n# robservable\n\nThis package allows the use of [Observable](https://observablehq.com/) notebooks (or parts of them) as `htmlwidgets` in R.\n\nNote that *it is not an `iframe` embedding a whole notebook* -- cells are `\u003cdiv\u003e` included directly in your document or application.  You can choose what cells to display, update cell values from R, and add observers to cells to get their values back into a Shiny application.\n\nThe following GIF shows a quick example of reusing a bar chart race notebook inside R with our own data.\n\n![example](https://raw.githubusercontent.com/juba/robservable/master/resources/screencast_0.2.gif)\n\nYou'll find more examples and the associated R code in the [robservable gallery](https://juba.github.io/robservable/articles/gallery.html).\n\n## Features\n\n- Display an entire published or shared notebook as an `htmlwidget`\n- Display specific cells of a published or shared notebook as an `htmlwidget`\n- Use R data to update cell values\n- Add observers on cell values to communicate with a Shiny app\n- Use inside Shiny app, Rmarkdown or Quarto document (as any htmlwidget)\n\n## Limitations\n\n\u003e **Warning**: in Quarto documents, you must either use `robservable` or `ojs` cells. Using both in the same document will make at least one of both fail.\n\n- Named cells can be included by name, but unnamed cells are refenced by their index (1-based), which is sometimes a bit tricky to determine. An alternative is to fork the notebook and name the cell in Observable.\n- No offline support : the included notebooks have to be downloaded each time they are used.\n\n## Installation\n\nThe package is on CRAN, but you can also install the development version with:\n\n```r\nremotes::install_github(\"juba/robservable\")\n```\n\n## Usage\n\nFor an introduction and examples, see the [introduction to robservable](https://juba.github.io/robservable/articles/introduction.html) vignette.\n\nFor a small gallery of interesting notebooks, see the [robservable gallery](https://juba.github.io/robservable/articles/gallery.html) vignette.\n\nFor usage in Shiny, see the [robservable in Shiny applications](https://juba.github.io/robservable/articles/shiny.html) vignette (work in progress).\n\n## Development notes\n\nThis package uses [packer](https://github.com/JohnCoene/packer) to manage JavaScript source code and dependencies. If you want to modify it, you'll need a working installation of [Node.js](https://nodejs.org/en/).\n\nAfter cloning this repository, run the following in a terminal at the project root :\n\n```sh\nnpm install\n```\n\nThen, if you modify the JavaScript code in `srcjs`, you'll have to run the following command to bundle and update the widget JavaScript code :\n\n```r\npacker::bundle_dev()\n```\n\nIf you want to ship a minimized production version, use :\n\n```r\npacker::bundle_prod()\n```\n","funding_links":[],"categories":["HTML","UI Components"],"sub_categories":["Notebooks"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuba%2Frobservable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuba%2Frobservable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuba%2Frobservable/lists"}