Changes
@Tina815 ci sta già lavorando.
Dal 19/11/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Suggested changes:
- Add package requirements in README file. The gradethis package needs to be installed from github because of R 4.4.2 PWB compatibility
- install.packages("reticulate")
- devtools::install_github("rstudio/gradethis")
- Add Python venv creation in README file. You can link my repo https://github.com/Public-Health-Scotland/vscode_prep
- You need to create your Python venv environment. Remember the name and path location
- Specify your Python version and package ones too (For compatibility purposes) e.g. pip install pandas==2.3.1
- Change the logo for a png with transparent background (to be compatible with dark mode). You can do for the other images too
- Remove all the install.packages comments from intro.Rmd. They should be in README
- You need to use Sys.unsetenv("RETICULATE_PYTHON") in your intro.Rmd r setup chunk before library(reticulate). I noticed reticulate has been set as a environment variable (ONLY for PWB). If you will publish on shiny app you need to comment that line.
- You have to use reticulate to create your Python environment (PWB or shiny app). This package will detect if it is already created and skip the creation.
# Sys.unsetenv("RETICULATE_PYTHON")
library(learnr)
library(gradethis)
library(reticulate)
knitr::opts_chunk$set(echo = FALSE)
tutorial_options(
exercise.checker = gradethis::grade_learnr
)
reticulate::virtualenv_create(envname = "pyenv")
reticulate::virtualenv_install("pyenv", packages = c("pandas==2.3.1"))
reticulate::use_virtualenv("pyenv", required = TRUE)
- You can add dark theme feature for accessibility purposes. You have to modify your CSS file and add these lines of code at the button part. A CSS file has the capability to detect your browser windows theme preference. You have to add the rest of your CSS elements depending on the theme light/dark.
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
color: #ffffff;
}
}
@media (prefers-color-scheme: light) {
body {
background-color: #ffffff;
color: #000000;
}
}
- Lingua principale
- R
- Stelle
- 0
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Public-Health-Scotland/python-training
-
pandas 3 compatibilityAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
Add accessibility viewApertaenhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
bug enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
bug enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
Tutte le issue di Public-Health-Scotland/python-training
Issue simili
-
Typos in schema fileAperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
-
Component: R
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
bug pixi-build-r
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
prefix-dev/pixi#7229 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rstudio/reticulate#1933 ·