# NOT RUN {
## read a excel sheet
sheet = read_sheet(system.file("extdata/example.xlsx", package = "params"))
## read a comma separated sheet
csv = read_sheet(system.file("extdata/example.csv", package = "params"))
## read a tab separate sheet
tsv = read_sheet(system.file("extdata/example.tsv", package = "params"))
# write sheets -------
# }
# NOT RUN {
# throws a R CMD check note - don't run
## write a comma separated sheet
write_sheet(sheet, "example.csv")
## write a tab separated sheet
write_sheet(sheet, "example.tsv")
## write an excel separated sheet
write_sheet(sheet, "example.xlsx")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab