Serve your dataset in RStudio Connection Pane with {fryingpane}

May 27, 2018
By

(This article was first published on Colin Fay, and kindly contributed to R-bloggers)

Serve the dataset from a package in RStudio Connection Pane.

About

{fryingpane} is a nice R dad joke a package that has only two
functions:

  • cook: serve the dataset from a package in your RStudio Connection
    Pane:

  • serve: create a function in your package that will serve the
    datasets from the package inside the Connection Pane, with this kind
    of code:

#' Launch Connection Pane
#' @export
#' @importFrom fryingpane serve
#' @example 

open_connection <- fryingpane::serve("mypkg")

You can install it with:

# install.packages("remotes")
remotes::install_github("ColinFay/fryingpane")

Why this package ?

This package, depsite is (obvious) usefullness, was a neat opportunity
for me to learn how to deal with RStudio Connection Pane – an adventure
I’ll be sharing on rtask in a near future. I
have to say this RStudio feature seems promising, even if a little bit
complex to handle in the first place.

Meanwhile if you have any idea for improving the package (I could for
example put some buttons on top of the Connection Panel), feel free to
open an issue on the GitHub
repo
.

To leave a comment for the author, please follow the link and comment on their blog: Colin Fay.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)