nwerth
February 13, 2020, 2:55pm
2
Can you show what you expect the output would be for this example?
Also, I've added some formatting to the code in your post. In general, you can do the same by adding three backticks before and after your code. So, in the post editing box, you would type:
Blah blah blah
```
x <- 1 + 2
```
Yaddah yaddah
And this would show up as:
Blah blah blah
x <- 1 + 2
Yaddah yaddah
You can read more about it here:
Formatting Code: the Basics
All code or console output you include in your posts should be formatted properly. Luckily, this is very easy to do! Just use the code formatting button at the top of the post editing box:
[image]
Select some code
Click the </> button!
The code formatting button automatically adds special Markdown formatting symbols to whatever you selected. If you check the preview pane to the right of your post, you'll see that the forum software now outputs nicely formatted code .
[04]
The code formatting button is pretty smart! It can tell the difference between snippets of code that are part of a sentence and blocks of code that stand alone. …
1 Like