process_ph | R Documentation |
Takes placeholder information from the rptyaml file and applies it to strings.
process_ph(str, rptdetails)
str |
String to process |
rptdetails |
Object creating when reading in rptyaml file
(default: |
processed string
library(onbrand)
obnd = read_template(
template = system.file(package="nlmixr2rpt", "templates","nlmixr_obnd_template.docx"),
mapping = system.file(package="nlmixr2rpt", "templates","nlmixr_obnd_template.yaml"))
# We also need an nlmixr fit object
fit = fetch_fit_example()
# This reads in the report details as well
rptdetails = yaml_read_fit(
obnd = obnd,
rptyaml = system.file(package="nlmixr2rpt", "examples", "report_fit_test.yaml"),
fit = fit)$rptdetails
str = "This is ===CMPD==="
process_ph(str, rptdetails)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.