view_creator: create view commands that save rds files to where a shiny app...

Description Usage Arguments Details Value Examples

View source: R/view_creator.R

Description

create view commands that save rds files to where a shiny app is listening for them

Usage

1
view_creator(path, save_non_interactive = FALSE)

Arguments

path

path to shiny app directory

save_non_interactive

whether to save data as RDS file while non-interactive mode such as knitting

Details

will, by default, set up to save RDS files to the shiny app to render them, and can take some optional arguments in the resulting function. Namely, can rename the file via name, and can determine whether the function should return a dataframe with return = T/F. The value of returning a function is view<x> can be embedded in a data pipeline to output intermediate results as well, while continuing on the pipeline

Value

a function with the path set

Examples

1
2
3
4
5
6
7
8
## Not run: 
path <- "~/Repos/dataView" # dataView shiny app location
view2 <- view_creator(path)
View2(Theoph) # will save a file Theoph.rds in dataView
View2(Theoph, "theoph1") #will save a file theoph1.rds
View2(Theoph, return = F) # will not return Theoph as well

## End(Not run)

PKPDmisc documentation built on April 14, 2020, 5:49 p.m.