Skip to content

Commit

Permalink
First attempt to render the rmd in R (i.e. run the python code in R v…
Browse files Browse the repository at this point in the history
…ignette)
  • Loading branch information
jbousquin committed Jul 2, 2024
1 parent 6a6e832 commit c72f069
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test_r.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'


- uses: r-lib/actions/setup-renv@v2

- uses: r-lib/actions/setup-pandoc@v2

- name: Update pip and install testing pkgs
Expand All @@ -60,9 +62,14 @@ jobs:
- name: Run pip env using R reticulate
run: |
install.packages("reticulate")
install.packages(c("knitr", "rmarkdown", "reticulate"))'
reticulate::import("harmonize_wq")
shell: Rscript {0}

- name: Render-rmd
run: |
echo "Rendering the page..."
Rscript -e 'rmarkdown::render(input = "demos/harmonize_Pensacola.Rmd")'
- name: Run pytest
run: pytest -v harmonize_wq

0 comments on commit c72f069

Please sign in to comment.