From 12c32aa431dac0b8d199d13f3122bac80bab9fb7 Mon Sep 17 00:00:00 2001 From: Himanshu Sikaria Date: Thu, 31 Oct 2019 14:27:54 +0530 Subject: [PATCH] import_st fixed --- R/import_st.R | 5 +---- man/import_st.Rd | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/R/import_st.R b/R/import_st.R index cb293dd..54e2af3 100644 --- a/R/import_st.R +++ b/R/import_st.R @@ -14,14 +14,11 @@ #' @return the output of the FUN function #' #' @examples -#' # for data on local -#' filepath = system.file("extdata", "mtcars.csv", package = "flyio") -#' data = import_st(filepath, data_source = "local") #' \dontrun{ #' # for data on cloud #' flyio_set_datasource("gcs") #' flyio_set_bucket("your-bucket-name") -#' data = import_table("excel-file-on-gcs.xlsx", read_excel, dir = tempdir()) +#' data = import_table("excel-file-on-gcs.geojson", dir = tempdir()) #' } import_st <- function(file, FUN = sf::read_sf, data_source = flyio_get_datasource(), diff --git a/man/import_st.Rd b/man/import_st.Rd index bdb855f..885029f 100644 --- a/man/import_st.Rd +++ b/man/import_st.Rd @@ -33,13 +33,10 @@ the output of the FUN function Read geospatial data from anywhere using a function defined by you } \examples{ -# for data on local -filepath = system.file("extdata", "mtcars.csv", package = "flyio") -data = import_st(filepath, data_source = "local") \dontrun{ # for data on cloud flyio_set_datasource("gcs") flyio_set_bucket("your-bucket-name") -data = import_table("excel-file-on-gcs.xlsx", read_excel, dir = tempdir()) +data = import_table("excel-file-on-gcs.geojson", dir = tempdir()) } }