Skip to content

R package to create Tableau extracts from a data.frame object via pantab and reticulate

Notifications You must be signed in to change notification settings

Btibert3/pantabR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pantabR

This is an R wrapper to the excellent python library pantab, which allows us to export our dataframes to Tableau Hyper Extract files. This can have advantages over simply saving out our datasets as csv files.

Requirements

pantabR requires Anaconda python (miniconda recommended) on your system path. This pacakge uses reticulate within R to use environments and manage the necessary python bits for this package to function.

This package implements the following from pantab:

  • frame_to_hyper

Future work will add other elements, such as hyper to dataframes or frames to hyper as needed.

Installation

devtools::install_github("btibert3/pantabR")

or

remotes::install_github("btibert3/pantabR")

Example

devtools::install_github("btibert3/pantabR")
library(pantabR)
dat = data.frame(x=1:10, y=letters[1:10])
frame_to_hyper(dat, f="dataset.hyper", tbl="dataset")

Above might take a moment or two depending if it is the first time you are using the package or calling the function.

Behind the scenes, pantabR is calling reticulate to configure and use a conda environment with the necessary pacakges.

Issues

This is a new package, and one that I want to add to, but I am certain there are bugs and issues that I need to catch. If you come across an issue, please consider adding an issue here

This package requires a data.frame and not a tibble.

About

R package to create Tableau extracts from a data.frame object via pantab and reticulate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages