diff --git a/docs/articles/tutorial.html b/docs/articles/tutorial.html index 311ed92..d4750dc 100644 --- a/docs/articles/tutorial.html +++ b/docs/articles/tutorial.html @@ -188,7 +188,8 @@

diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index c6d6574..a8d5bca 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -3,7 +3,7 @@ pkgdown: 2.0.7 pkgdown_sha: ~ articles: tutorial: tutorial.html -last_built: 2024-03-19T14:24Z +last_built: 2024-03-19T14:25Z urls: reference: https://bc3lc.github.io/gcamreport/reference article: https://bc3lc.github.io/gcamreport/articles diff --git a/vignettes/tutorial.Rmd b/vignettes/tutorial.Rmd index ba9bc5e..4d0dcba 100644 --- a/vignettes/tutorial.Rmd +++ b/vignettes/tutorial.Rmd @@ -35,7 +35,7 @@ In addition to the main graph interface, rfasstui also has a few other outputs. Tutorial Step 1: Getting Started | Example ------------- | --------- - To begin the tutorial, make sure you are in the “Explore rfasst” tab and click the any of the “Standard Scenarios” available, or leave it as rfasst default. The different scenarios contain unique input parameters that drive the rfasst model’s output. For the purposes of this experiment you may choose whichever you like. | ![Explore rfasst](https://raw.githubusercontent.com/bc3LC/rfasstui/main/vignettes/vig_figures/vig1.png){width=350px} + To begin the tutorial, make sure you are in the “Explore rfasst” tab and click the any of the “Standard Scenarios” available, or leave it as rfasst default. The different scenarios contain unique input parameters that drive the rfasst model’s output. For the purposes of this experiment you may choose whichever you like. Click the ‘Load Graphs’ button!| ![Explore rfasst](https://raw.githubusercontent.com/bc3LC/rfasstui/main/vignettes/vig_figures/vig1.png){width=350px} Tutorial Step 2: Downloading data and figures | Example ------------- | --------- diff --git a/workflows/docs.yml b/workflows/docs.yml new file mode 100644 index 0000000..84f0cd3 --- /dev/null +++ b/workflows/docs.yml @@ -0,0 +1,58 @@ +name: docs + +on: + push: + branches: + - main + +jobs: + pkgdown: + runs-on: ubuntu-latest + + env: + R_REMOTES_NO_ERRORS_FROM_WARNINGS: true + GITHUB_PAT: ${{ secrets.GH_RFASSTUI_TOKEN}} + RSPM: ${{ matrix.config.rspm }} + + steps: + - uses: actions/checkout@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: '4.1.0' + + - uses: r-lib/actions/setup-pandoc@v2 + + - name: Install libraries + run: | + sudo apt-get update + sudo apt-get install -y libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev libssl-dev libxml2-dev libudunits2-dev libgdal-dev libgeos-dev libproj-dev libmagick++-dev libavfilter-dev + + - name: Restart R + run: | + R --vanilla --quiet + echo 'q()' | R --no-save + + - name: Install dependencies 1 + run: | + install.packages(c("remotes", "rcmdcheck"), repos = "https://cloud.r-project.org") + shell: Rscript {0} + + - name: Install dependencies 2 + run: | + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + + - name: Install dependencies 3 + run: | + install.packages("pkgdown") + shell: Rscript {0} + + - name: Install package + run: R CMD INSTALL . + + - name: Deploy package + run: | + git config --local user.name "$GITHUB_ACTOR" + git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" + Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' \ No newline at end of file