knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Serve the datasets from a package inside the RStudio Connection Pane.
You can install the dev version of {fryingpane} from Github with:
# install.packages("remotes") remotes::install_github("ColinFay/fryingpane")
Use this package to create a function for displaying your package data inside the RStudio Connection Pane.
Note that {fryingpane}
should be listed as a dependency to your new package.
Create a function that launch the connection pane with the datasets from your package. This function should have this form in the .R
(change mypkg
to the name of your package):
#' Launch Connection Pane #' @export #' @importFrom fryingpane serve #' @example open_connection <- fryingpane::serve("mypkg")
You can open the datasets from another package.
library(fryingpane) cook("dplyr")
Close the connection with the ad hoc button.
You can find an history of your last connection in the Connections pane.
Questions and feedbacks welcome!
You want to contribute ? Open a PR :) If you encounter a bug or want to suggest an enhancement, please open an issue.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.