From 6e9b074c05b48916d5f27740fa56b440d1fbae05 Mon Sep 17 00:00:00 2001 From: zettsu-t Date: Sat, 1 Jan 2022 08:14:29 +0000 Subject: [PATCH 1/3] Make documents --- .github/workflows/R-CMD-check.yaml | 68 ++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/R-CMD-check.yaml diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml new file mode 100644 index 0000000..8f6c44c --- /dev/null +++ b/.github/workflows/R-CMD-check.yaml @@ -0,0 +1,68 @@ +on: + push: + branches: + - main + - master + - makedoc + pull_request: + branches: + - main + - master + +name: Make-doc + +jobs: + Make-doc: + runs-on: ubuntu-20.04 + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + LANG: ja_JP.UTF-8 + LANGUAGE: ja_JP:ja + LC_ALL: ja_JP.UTF-8 + steps: + - uses: actions/checkout@v2 + - uses: r-lib/actions/setup-pandoc@v1 + - uses: r-lib/actions/setup-r@v1 + with: + r-version: 4.1.2 + + - name: Install R package dependencies + run: | + sudo apt-get install -y libcairo2-dev libcurl4-openssl-dev libgit2-dev libicu-dev libpng-dev libpython3-dev libssl-dev libtbb2 libxml2-dev libxt6 libxt-dev curl git-core pandoc pandoc-citeproc qpdf zlib1g-dev + + - name: Install a language pack + run: | + sudo apt-get install -y language-pack-ja + sudo update-locale LANG=ja_JP.UTF-8 + sudo locale-gen ja_JP.UTF-8 + + - name: Install Japanese fonts + run: | + sudo curl -L "https://osdn.net/frs/redir.php?m=nchc&f=mix-mplus-ipa%2F72511%2Fmigu-1m-20200307.zip" -o /usr/share/fonts/truetype/migu-1m-20200307.zip + sudo unzip /usr/share/fonts/truetype/migu-1m-20200307.zip -d /usr/share/fonts/truetype + sudo rm /usr/share/fonts/truetype/migu-1m-20200307.zip + + - name: Install R packages + run: | + install.packages(c("remotes", "devtools")) + install.packages(c("assertthat", "extrafont", "functional", "jsonlite", "kableExtra", "knitr", "lintr", "lubridate", "markdown", "plotly", "R6", "RColorBrewer", "reticulate", "rlang", "styler", "xfun")) + devtools::install_github("wch/extrafont") + remotes::install_version("cloc", repos = c("https://cinc.rud.is", "https://cloud.r-project.org/")) + remotes::install_version("Rttf2pt1", version = "1.3.8") + remotes::install_version("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) + install.packages(c("posterior", "bayesplot")) + shell: Rscript {0} + + - name: Setup R packages + run: | + extrafont::font_import(prompt = FALSE) + reticulate::install_miniconda() + cmdstanr::install_cmdstan() + shell: Rscript {0} + + - name: Make documents + run: | + rmarkdown::render("r_in_30minutes.Rmd", output_format = "html_document") + rmarkdown::render("r_in_30minutes.Rmd", rmarkdown::github_document(toc = TRUE, hard_line_breaks = TRUE, pandoc_args = c("--wrap=none"))) + rmarkdown::render("stan_example.Rmd", output_format = "html_document") + shell: Rscript {0} From 359c2c5ae7370227eb819dcb8dbfd2373274e622 Mon Sep 17 00:00:00 2001 From: zettsu-t Date: Sat, 1 Jan 2022 08:42:49 +0000 Subject: [PATCH 2/3] Add tidyverse --- .github/workflows/R-CMD-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 8f6c44c..3f4b054 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -45,7 +45,7 @@ jobs: - name: Install R packages run: | install.packages(c("remotes", "devtools")) - install.packages(c("assertthat", "extrafont", "functional", "jsonlite", "kableExtra", "knitr", "lintr", "lubridate", "markdown", "plotly", "R6", "RColorBrewer", "reticulate", "rlang", "styler", "xfun")) + install.packages(c("assertthat", "extrafont", "functional", "jsonlite", "kableExtra", "knitr", "lintr", "lubridate", "markdown", "plotly", "R6", "RColorBrewer", "reticulate", "rlang", "styler", "tidyverse", "xfun")) devtools::install_github("wch/extrafont") remotes::install_version("cloc", repos = c("https://cinc.rud.is", "https://cloud.r-project.org/")) remotes::install_version("Rttf2pt1", version = "1.3.8") From 77ed28e91f5cda5a61a2287ebca4a58316921033 Mon Sep 17 00:00:00 2001 From: zettsu-t Date: Sat, 1 Jan 2022 09:13:32 +0000 Subject: [PATCH 3/3] Cencel documentation with real data --- .github/workflows/R-CMD-check.yaml | 68 ------------------------------ 1 file changed, 68 deletions(-) delete mode 100644 .github/workflows/R-CMD-check.yaml diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml deleted file mode 100644 index 3f4b054..0000000 --- a/.github/workflows/R-CMD-check.yaml +++ /dev/null @@ -1,68 +0,0 @@ -on: - push: - branches: - - main - - master - - makedoc - pull_request: - branches: - - main - - master - -name: Make-doc - -jobs: - Make-doc: - runs-on: ubuntu-20.04 - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - LANG: ja_JP.UTF-8 - LANGUAGE: ja_JP:ja - LC_ALL: ja_JP.UTF-8 - steps: - - uses: actions/checkout@v2 - - uses: r-lib/actions/setup-pandoc@v1 - - uses: r-lib/actions/setup-r@v1 - with: - r-version: 4.1.2 - - - name: Install R package dependencies - run: | - sudo apt-get install -y libcairo2-dev libcurl4-openssl-dev libgit2-dev libicu-dev libpng-dev libpython3-dev libssl-dev libtbb2 libxml2-dev libxt6 libxt-dev curl git-core pandoc pandoc-citeproc qpdf zlib1g-dev - - - name: Install a language pack - run: | - sudo apt-get install -y language-pack-ja - sudo update-locale LANG=ja_JP.UTF-8 - sudo locale-gen ja_JP.UTF-8 - - - name: Install Japanese fonts - run: | - sudo curl -L "https://osdn.net/frs/redir.php?m=nchc&f=mix-mplus-ipa%2F72511%2Fmigu-1m-20200307.zip" -o /usr/share/fonts/truetype/migu-1m-20200307.zip - sudo unzip /usr/share/fonts/truetype/migu-1m-20200307.zip -d /usr/share/fonts/truetype - sudo rm /usr/share/fonts/truetype/migu-1m-20200307.zip - - - name: Install R packages - run: | - install.packages(c("remotes", "devtools")) - install.packages(c("assertthat", "extrafont", "functional", "jsonlite", "kableExtra", "knitr", "lintr", "lubridate", "markdown", "plotly", "R6", "RColorBrewer", "reticulate", "rlang", "styler", "tidyverse", "xfun")) - devtools::install_github("wch/extrafont") - remotes::install_version("cloc", repos = c("https://cinc.rud.is", "https://cloud.r-project.org/")) - remotes::install_version("Rttf2pt1", version = "1.3.8") - remotes::install_version("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) - install.packages(c("posterior", "bayesplot")) - shell: Rscript {0} - - - name: Setup R packages - run: | - extrafont::font_import(prompt = FALSE) - reticulate::install_miniconda() - cmdstanr::install_cmdstan() - shell: Rscript {0} - - - name: Make documents - run: | - rmarkdown::render("r_in_30minutes.Rmd", output_format = "html_document") - rmarkdown::render("r_in_30minutes.Rmd", rmarkdown::github_document(toc = TRUE, hard_line_breaks = TRUE, pandoc_args = c("--wrap=none"))) - rmarkdown::render("stan_example.Rmd", output_format = "html_document") - shell: Rscript {0}