Changes
@Tina815 がすでに取り組んでいます。
2025年11月19日 から。
評価
この issue はまだ評価されていません。
説明
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;
}
}
- 主要言語
- R
- スター
- 0
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Public-Health-Scotland/python-training のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
bug enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
bug enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
Public-Health-Scotland/python-training の issue をすべて見る
似ている issue
-
Typos in schema fileオープン
難易度 1/5 1〜3時間 初心者へのやさしさ 65/100
-
Component: R
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
bug pixi-build-r
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
prefix-dev/pixi#7229 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
rstudio/reticulate#1933 ·