# NOT RUN {
# Literal csv
datasource("a,b,c\n1,2,3")
datasource(charToRaw("a,b,c\n1,2,3"))
# Strings
datasource(readr_example("mtcars.csv"))
datasource(readr_example("mtcars.csv.bz2"))
datasource(readr_example("mtcars.csv.zip"))
# }
# NOT RUN {
datasource("https://github.com/tidyverse/readr/raw/master/inst/extdata/mtcars.csv")
# }
# NOT RUN {
# Connection
con <- rawConnection(charToRaw("abc\n123"))
datasource(con)
close(con)
# }
Run the code above in your browser using DataLab