ISRaD.save.entry: ISRaD.save.entry

View source: R/ISRaD.save.entry.R

ISRaD.save.entryR Documentation

ISRaD.save.entry

Description

Saves ISRaD data object to .xlsx file

Usage

ISRaD.save.entry(
  entry,
  template_file = system.file("extdata", "ISRaD_Master_Template.xlsx", package = "ISRaD"),
  outfile
)

Arguments

entry

ISRaD data object

template_file

Directory path and name of template file to use (defaults to the ISRaD_Master_Template file built into the package). Not recommended to change this.

outfile

File name and path for .xlsx output

Details

This function can be used to save a single entry (or a compiled database in the standard template format) to an .xlsx file.

Note: Replaces the function "ISRaD.save.xlsx" as that function depended on the package openxlsx, which was unstable at the time. This a simpler function and does not maintain the formatting of the template file. The code for the original function is available in the ISRaD github repository in the devScripts directory.

Author(s)

J. Beem-Miller

Examples


# Load example dataset Gaudinski_2001
entry <- ISRaD::Gaudinski_2001
ISRaD.save.entry(
  entry = entry,
  template_file = system.file("extdata", "ISRaD_Master_Template.xlsx", package = "ISRaD"),
  outfile = file.path(tempdir(), "Gaudinski_2001.xlsx")
)


ISRaD documentation built on Sept. 21, 2023, 9:06 a.m.