generated from carpentries/workbench-template-md
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8849d6a
commit 8d706f0
Showing
1 changed file
with
15 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
--- | ||
title: "R Markdown with Python" | ||
output: html_document | ||
--- | ||
|
||
You can include Python code in R Markdown documents. R Markdown is a versatile document format that supports multiple programming languages. To include Python code, you can use code chunks with the {python} option. | ||
|
||
Here's an example of how you can include Python code in an R Markdown document: | ||
|
||
## Python Code in R Markdown | ||
|
||
```{python} | ||
# This is a Python code chunk | ||
print("Hello from Python!") |