write_trial: Write a trial table to a Google Spreadsheets

View source: R/write_trial.R

write_trialR Documentation

Write a trial table to a Google Spreadsheets

Description

[Experimental]

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

write_trial() writes a ⁠trial_*⁠ table of the systematic quantitative literature review (sqlr) system to a Google Spreadsheets.

You must have a sheets data object with the sheets metadata and an updated reference table before running this function. See write_metadata() and update_reference() to learn more.

Usage

write_trial(trial_id, package = rutils:::get_package_name())

Arguments

trial_id

A string indicating the ID of the trial to be written.

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_reference()

Examples

## Not run: 
## Writing the Trial - DUP table

write_trial("dup")

## Checking the number of rows with the 'reference' table

nrow(dplyr::filter(reference, !is.na(criteria_id)) +
sheet_nrow("trial_nr1") == nrow(reference)
## End(Not run)

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