Skip to contents

The columns are sent in one request. SeaTable's batch endpoint skips some column types without an error - a formula column among them - so any column its reply leaves out is then created on its own.

Usage

hb_add_columns(client, table, columns, ...)

Arguments

client

A harbour_client.

table

Table name.

columns

A list of column specs, each a named list with name, type and optionally data - the same shape hb_create_table() takes. SeaTable's own spelling, column_name, column_type and column_data, is accepted too.

...

These dots are for future extensions and must be empty.

Value

Invisibly returns the client.

Examples

# needs a SeaTable server and an API token
if (FALSE) { # \dontrun{
client <- hb_client()
hb_add_columns(
  client, "Samples",
  list(
    list(name = "a", type = "text"),
    list(name = "b", type = "number")
  )
)
} # }