Changes
@Tina815 đang làm issue này rồi.
Từ ngày 19/11/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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;
}
}
- Ngôn ngữ chính
- R
- Star
- 0
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Public-Health-Scotland/python-training
-
pandas 3 compatibility Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Add accessibility view Đang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
-
bug enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
bug enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Tất cả issue của Public-Health-Scotland/python-training
Issue tương tự
-
Affects Web App documentation PRIORITY LOW
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
hubverse-org/hubCI#36 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
OHDSI/CohortSymmetry#351 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100