fryingpane
fryingpane copied to clipboard
Serve datasets from a package inside the RStudio Connection Pane.
fryingpane
Serve the datasets from a package inside the RStudio Connection Pane.
Installation
You can install the dev version of {fryingpane} from Github with:
# install.packages("remotes")
remotes::install_github("ColinFay/fryingpane")
What is this about?
In your package
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.
Function to launch the Connection Pane for your package
Create a function that launches the connection pane with the datasets from
your package. This function should have the following 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")
View the data from another package
You can open the datasets from another package.
library(fryingpane)
cook("FactoMineR")

Close the connection with the ad hoc button.
You can find an history of your last connection in the Connections pane.


Demo

Contact
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.