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

Description Usage Arguments References Examples

View source: R/Utils.R

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

1

Arguments

df

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

References

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

cmatKhan/brentlabRnaSeqTools documentation built on Nov. 17, 2021, 5:47 a.m.