write_code: Write code to R script from tagged diagnostics

View source: R/app_styling.R

write_codeR Documentation

Write code to R script from tagged diagnostics

Description

Use this function to write code to R script from diagnostics tagged in Certara's VPC Results Shiny Application.

Usage

write_code(tagged, file)

Arguments

tagged

List of tagged objects from returned from VPCResultsUI().

file

Character specifying path of output file. If missing, it will be saved as code.R in working directory.

Value

Returns NULL after writing to file.

Examples

if (interactive()) {
 tagged_diagnostics <-
   vpcResultsUI(tidyvpc::obs_data, tidyvpc::sim_data)

 write_code(tagged_diagnostics, "tagged_vpc.R")
}


Certara.VPCResults documentation built on Oct. 11, 2024, 1:09 a.m.