writeSampleSubmissionForm {readat} | R Documentation

## Write a SomaLogic sample submission form

### Description

Writes a SomaLogic sample submission form to Excel XLSX file.

### Usage

    writeSampleSubmissionForm(submission, outdir = ".")

### Arguments

`submission` | A `data.frame` created by `createSampleSubmission`.
`outdir` | A string denoting the path to the directory where the output file should be written.

### Value

The name of the XLSX file is invisibly returned, but the function is mostly called for the side effect of writing this file.

### See Also

`readSlides` and `createSampleSubmission`

### Examples

    # Import the input files
    withr::with_dir(
      system.file("extdata", package = "readat"),
      {
        slides <- readSlides()
        controls <- readControls()
        comments <- readComments()
        samples <- readSamples()
      }
    )

    # Create the sample submission form and write to Excel spreadsheet
    submission <- createSampleSubmission(
      slides, controls, comments, samples,
      studyName = "Taheri01", studyId = "WCQ-16-002"
    )
    writeSampleSubmissionForm(submission, tempdir())

[Package readat version 1.8.0 Index]