localView: To view a data.frame / data.table in LibreOffice Calc

View source: R/Utils.R

localViewR Documentation

To view a data.frame / data.table in LibreOffice Calc

Description

Copied from https://gitlab.com/zauster/ormisc/-/blob/master/R/view.R. The purpose of this function is to write the dataframe to at tmp file and print the path. Use the clipr package to write the output to the clipboard for easy pasting into a terminal. See example.

Usage

localView(df)

Arguments

df

the data.frame (or data.table or tibble)

References

https://gitlab.com/zauster/ormisc/-/blob/master/R/view.R

Examples

## Not run: 
install.packages(clipr)
library(clipr)
# df is some dataframe in your environment
write_clip(localView(df))
# in a terminal, you can how paste in the line that the cmd above put
# in your clipboard and hit enter. your computer will know what to do next
# hopefully

## End(Not run)


BrentLab/brentlabRnaSeqTools documentation built on Aug. 20, 2023, 9:22 a.m.