-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from nhs-r-community/install-python
Install python
- Loading branch information
Showing
4 changed files
with
35 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# Technical guidance - Python {#tech-python} | ||
|
||
## What programs are required | ||
## What programs are required for a computer | ||
|
||
To write Python code you will need the [Python program](https://www.python.org/downloads/), an IDE (Integrated Development Environment) like [VSCode](https://code.visualstudio.com/) and Python is supported within [RStudio](https://posit.co/download/rstudio-desktop/) (including in Quarto scripts). | ||
|
||
Installing Python will require admin rights for the person installing it. | ||
|
||
To check that Python has been installed (on Windows) open the Command Prompt (accessed via the Windows button on the keyboard on a Windows computer) and type `py --version`. | ||
|
||
Content to be added, committing this to see if the book renders in GitHub Actions. |
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,23 @@ | ||
# Technical guidance - Quarto {#tech-quarto} | ||
|
||
## Quarto | ||
|
||
Quarto is the next generation of reporting from R (specifically RMarkdown) that allows for code and text to be used together to produce a wide variety of outputs like word, pdf, PowerPoint, slides, books and websites. | ||
Quarto also allows for more flexibility in use by people who use Python and prefer to use VS Code (or other IDEs). | ||
|
||
## Installing for RStudio | ||
|
||
The latest version of Quarto is built into the RStudio IDE itself and to update it is necessary to use download the Quarto CLI (command line interface) <https://quarto.org/docs/get-started/>. | ||
|
||
::: aside | ||
The Quarto CLI download is a `win.msi` file so may not require authorisation from IT teams to download and install. | ||
::: | ||
|
||
The package {quarto} contains functions that can be used in R to run some of the command line commands and isn't necessary to have if you are happy to use the command line or Terminal as it is known as in RStudio. | ||
For example, to preview this book, in the command line the code is: | ||
|
||
`quarto render` | ||
|
||
but in R using {quarto} it is: | ||
|
||
`quarto::quarto_render()` |
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