-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
0d528cd
commit 8d59c57
Showing
6 changed files
with
87 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Test # | ||
|
||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod | ||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At | ||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, | ||
no sea takimata sanctus est Lorem ipsum dolor sit amet. | ||
|
||
```{r} | ||
a = 1 | ||
``` | ||
|
||
Test | ||
==== | ||
|
||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod | ||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At | ||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, | ||
no sea takimata sanctus est Lorem ipsum dolor sit amet. | ||
|
||
```{r} | ||
b <- function(x) { | ||
d = 1 | ||
} | ||
``` | ||
|
||
```{r engine="python"} | ||
a=[] | ||
a[0]=1 | ||
``` | ||
|
||
``` | ||
Plain code blocks can be written after three or more backticks | ||
- R Markdown: The Definitive Guide. Xie, Allaire and Grolemund (2.5.2) | ||
``` | ||
|
||
```r | ||
# This is a non-evaluated block of R code for formatting in markdown. | ||
# It should not be linted | ||
abc = 123 | ||
``` | ||
|
||
```cpp | ||
// Some C++ code for formatting by markdown | ||
|
||
``` | ||
|
||
Calls to a non-R knitr-engine using {engine_name} syntax. | ||
|
||
```{python} | ||
# Python that looks like R | ||
a = list() | ||
b = {2} | ||
print(a) | ||
``` | ||
|
||
```{python} | ||
# Python that's definitely not R | ||
a = [] | ||
a.append(2) | ||
print(a) | ||
``` | ||
|
||
The following are only supported by Quarto and shouldn't lint either. | ||
|
||
```{.r} | ||
1+1 | ||
``` | ||
|
||
```{{r}} | ||
1+1 | ||
``` | ||
|
||
```{.python} | ||
# Python that's definitely not R | ||
a = [] | ||
a.append(2) | ||
print(a) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters