# Conversion from a local json file to a single parquet file ::
json_to_parquet(
path_to_file = system.file("extdata","iris.json",package = "parquetize"),
path_to_parquet = tempfile(fileext = ".parquet")
)
# Conversion from a local ndjson file to a partitioned parquet file ::
json_to_parquet(
path_to_file = system.file("extdata","iris.ndjson",package = "parquetize"),
path_to_parquet = tempfile(fileext = ".parquet"),
format = "ndjson"
)
Run the code above in your browser using DataLab