SafetyGraphics / safetyGraphics

Clinical Trial Safety Graphics with R
https://safetygraphics.github.io/safetyGraphics/
Other
93 stars 24 forks source link

example in the cookbook didn't work. Function read_yaml NOT found #688

Closed ningxuca closed 2 years ago

ningxuca commented 2 years ago

qtOutliers<-prepareChart(read_yaml('https://raw.githubusercontent.com/SafetyGraphics/safetyCharts/dev/inst/config/safetyOutlierExplorer.yaml') ) Screenshot 2022-06-16 160151

Error in read_yaml("https://raw.githubusercontent.com/SafetyGraphics/safetyCharts/dev/inst/config/safetyOutlierExplorer.yaml") : could not find function "read_yaml"

jwildfire commented 2 years ago

Thanks for the note @ningxuca. You can install the yaml package before running the example by calling this code:

install.packages('yaml')
library('yaml')

I'll add that code to the vignette before the next release.