File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,12 @@ withr::with_dir(tmpdir, {
66
66
Schema <- jsonlite :: fromJSON(" dist/plot-schema.json" )
67
67
bundleTraceMap <-
68
68
paste0(readLines(" tasks/util/constants.js" ), collapse = " \n " ) | >
69
- stringr :: str_extract(pattern = " (?<=\\ b(const|var) partialBundleTraces = )\\ {[^}]+\\ }" ) | >
70
- yaml :: read_yaml(text = _)
69
+ stringr :: str_extract(pattern = " (?<=\\ b(const|var) partialBundleTraces = )\\ {[^}]+\\ }" )
70
+
71
+ if (is.na(bundleTraceMap )) {
72
+ stop(" No `partialBundleTraces` variable definition found in Plotly source file `tasks/util/constants.js`. Does the regex pattern need an update?" )
73
+ }
74
+ bundleTraceMap <- yaml :: read_yaml(text = bundleTraceMap )
71
75
72
76
withr :: with_dir(
73
77
pkg_dir , usethis :: use_data(
You can’t perform that action at this time.
0 commit comments