[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.

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

if (FALSE) {
write_reference(data.frame(a = 1, b = 1))}