Skip to content

Commit

Permalink
docs: returns of examples with the gzip method but with a dontrun sta…
Browse files Browse the repository at this point in the history
…tement
  • Loading branch information
ddotta committed May 10, 2023
1 parent 16f56a0 commit 84d4d57
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
13 changes: 12 additions & 1 deletion R/csv_to_parquet.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,18 @@
#' filename_in_zip = "census2021-ts007-ctry.csv",
#' path_to_parquet = tempfile(fileext = ".parquet")
#' )

#'
#' \dontrun{
#' # Conversion from a URL and a csv file with "gzip" compression :
#'
#' csv_to_parquet(
#' path_to_file =
#' "https://github.com/sidsriv/Introduction-to-Data-Science-in-python/raw/master/census.csv",
#' path_to_parquet = tempfile(fileext = ".parquet"),
#' compression = "gzip",
#' compression_level = 5
#' )
#' }
csv_to_parquet <- function(
path_to_file,
url_to_csv = lifecycle::deprecated(),
Expand Down
4 changes: 4 additions & 0 deletions R/write_parquet_at_once.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#' write_parquet_at_once(iris, tempfile())
#'
#' write_parquet_at_once(iris, tempfile(), partition = "yes", partitioning = c("Species"))
#'
#' \dontrun{
#' write_parquet_at_once(iris, tempfile(), compression="gzip", compression_level = 5)
#' }
write_parquet_at_once <- function(
data,
path_to_parquet,
Expand Down
12 changes: 12 additions & 0 deletions man/csv_to_parquet.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/write_parquet_at_once.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 84d4d57

Please sign in to comment.