You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/How_to_Write_and_Contribute_Designers.Rmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ We've devised an easy way to include code in design objects returned by a design
83
83
84
84
## Our method for adding code
85
85
86
-
One easy way to add code to the designs that your designer returns is to use our triple braces method. Any checks (such as those that look to see whether `prob` is between 0 and 1) come before the opening triple braces, `{{{`. Then, all the code needed to build the design goes between the triple braces:
86
+
One easy way to add code to the designs that your designer returns is to use our triple braces method. Any checks (such as those that look to see whether `prob` is between 0 and 1) come before the opening triple braces, <code> {{{ </code>. Then, all the code needed to build the design goes between the triple braces:
87
87
88
88
```{r, eval=FALSE}
89
89
{{{
@@ -102,7 +102,7 @@ One easy way to add code to the designs that your designer returns is to use our
102
102
}}}
103
103
```
104
104
105
-
Our function `construct_design_code` goes into the designer and extracts all of the code between `{{{`and `}}}`. Then, `match.call.defaults()` checks what arguments the user gave the function, and adds them to the top of the extracted code in a list that looks like this:
105
+
Our function `construct_design_code` goes into the designer and extracts all of the code between <code> {{{ </code> and <code> }}} </code>. Then, `match.call.defaults()` checks what arguments the user gave the function, and adds them to the top of the extracted code in a list that looks like this:
0 commit comments