Skip to contents

Duplicate a table

Usage

hb_duplicate_table(client, table, ..., duplicate_records = TRUE)

Arguments

client

A harbour_client.

table

Source table name.

...

These dots are for future extensions and must be empty.

duplicate_records

Copy the rows as well as the structure. Default TRUE.

Value

Invisibly returns the client.

Naming

SeaTable names the copy after the original with (copy) appended, with no space - a copy of Samples is Samples(copy) - and offers no way to set the name in the same request. Follow with hb_rename_table() if you need a particular name.

Examples

# needs a SeaTable server and an API token
if (FALSE) { # \dontrun{
client <- hb_client()
hb_duplicate_table(client, "Samples")
hb_rename_table(client, "Samples(copy)", "Samples_backup")
} # }