write_reference: Write the 'reference' table to the package and to Google...

View source: R/write_reference.R

write_referenceR Documentation

Write the reference table to the package and to Google Spreadsheets

Description

[Experimental]

CAUTION: This function must be used only with packages that follow the sqlr system.

write_reference() writes a data.frame to the reference data file of the package an to its Google Spreadsheets file.

You must have a sheets data object with the sheets metadata before running this function. See write_metadata() to learn more.

Usage

write_reference(data, package = rutils:::get_package_name())

Arguments

data

The data.frame object to write.

package

(optional) a string indicating the package with the database data. If not assigned, the function will try to use the name of the active project directory (requires the rstudioapi package).

See Also

Other reference/citation functions: build_reference(), update_reference(), write_trial()

Examples

## Not run: 
write_reference(data.frame(a = 1, b = 1))
## End(Not run)

gipsousp/sqlr documentation built on Sept. 29, 2023, 11:41 a.m.