Skip to content

blockr.io

Getting data in and out: read CSV, Excel, Parquet and more, from files or URLs, and write results back out.

Import Data

new_read_block() · input

Read and load data from files on your computer, server, or web. Supports CSV, Excel, SPSS, SAS, Stata, Parquet, and more.

ArgumentDescription
pathCharacter vector of file paths to read. Multiple paths are combined according to combine.
sourceWhere the file comes from. One of "upload" (user uploads at runtime) or "path" (server-side path). Default "upload".
combineHow to combine multi-file input. One of "auto", "rbind" (row-bind matching schemas), "cbind" (column-bind), or "first" (use only the first file). Default "auto".
argsNamed list of extra arguments forwarded to the underlying reader (e.g. list(sheet = 2, col_types = "c") for Excel). Format is auto-detected from file extension.

Download Data

new_download_block() · output

Download your data to the browser as CSV, Excel, Parquet, or Feather. A lighter alternative to Export Data when no server-side save is needed.

ArgumentDescription
filenameCharacter. Base filename (no extension). Extension is derived from format.
formatOutput format. One of "csv", "excel", "parquet", "feather". Default "csv".
argsNamed list of extra arguments forwarded to the underlying writer.

Export Data

new_write_block() · output

Write and save your data to CSV, Excel, Parquet, or Feather files. Download directly or save to server.

ArgumentDescription
directoryCharacter. Output directory path.
filenameCharacter. Base filename (no extension). Extension is derived from format.
formatOutput format. One of "csv", "excel", "parquet", "feather". Default "csv".
auto_writeLogical. TRUE writes on every upstream update; FALSE (default) writes only on explicit user action.
argsNamed list of extra arguments forwarded to the underlying writer.