Skip to content

Commit

Permalink
R-CMD-Check badge added
Browse files Browse the repository at this point in the history
  • Loading branch information
yashdubey132 committed Dec 10, 2024
1 parent b3c326f commit a7ffc25
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 7 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
^docs$
^pkgdown$
^data/metadata$
^\.github$
38 changes: 38 additions & 0 deletions .Rhistory
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,41 @@ devtools::install()
devtools::check()
unlink("/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/planetaryhdi", recursive = TRUE)
devtools::check()
devtools::check()
devtools::install()
washr::setup_website()
washr::setup_website()
?citation
washr::update_citation("10.5281/zenodo.14355748")
pkgdown::build_site()
washr::add_metadata()
washr::update_metadata()
washr::add_creator(name = "Yash Dubey", email = "ydubey@ethz.ch")
washr::generate_jsonld()
washr::update_gsheet_metadata("yashdubey132")
devtools::check()
devtools::build_readme()
pkgdown::build_website()
pkgdown::build_site()
washr::setup_website()
devtools::build_readme()
washr::setup_website()
devtools::build_readme()
devtools::build_readme()
washr::setup_website()
devtools::build_readme()
citation <- utils::readCitationFile("inst/CITATION")
citation
citation$doi
biblio_metadata <- readr::read_csv("data/metadata/biblio.csv", show_col_types = FALSE)
biblio_metadata$keywords[1]
remove.packages("washr")
devtools::install_github("https://github.com/openwashdata/washr", ref = "dev-metadata")
library(washr)
washr::update_gsheet_metadata()
washr::update_gsheet_metadata("yashdubey132")
remove.packages("washr")
install.packages("https://github.com/openwashdata/washr", ref = "dev-metadata")
devtools::install_github("https://github.com/openwashdata/washr", ref="dev-metadata")
washr::update_citation("10.581.test")
devtools::build_readme()
2 changes: 1 addition & 1 deletion .Rproj.user/17F39D71/pcs/files-pane.pper
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"ascending": true
}
],
"path": "~/Desktop/planetaryhdi"
"path": "~/Desktop/planetaryhdi/inst"
}
2 changes: 1 addition & 1 deletion .Rproj.user/17F39D71/pcs/windowlayoutstate.pper
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"left": {
"splitterpos": 376,
"splitterpos": 375,
"topwindowstate": "NORMAL",
"panelheight": 904,
"windowheight": 942
Expand Down
9 changes: 7 additions & 2 deletions .Rproj.user/17F39D71/rmd-outputs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/private/var/folders/q2/thf5k95955q8kn6twjrwljbr00jms0/T/RtmplXx9He/preview-2a9f76de4832.dir/README.html
/private/var/folders/q2/thf5k95955q8kn6twjrwljbr00jms0/T/RtmplXx9He/preview-2a9f14f0c8bd.dir/README.html
/private/var/folders/q2/thf5k95955q8kn6twjrwljbr00jms0/T/RtmplXx9He/preview-2a9f1f69a940.dir/README.html
/private/var/folders/q2/thf5k95955q8kn6twjrwljbr00jms0/T/RtmpHn9Jxt/preview-5e633d077c1e.dir/README.html
/private/var/folders/q2/thf5k95955q8kn6twjrwljbr00jms0/T/RtmpHn9Jxt/preview-5e636a4b8da1.dir/README.html
/private/var/folders/q2/thf5k95955q8kn6twjrwljbr00jms0/T/RtmplXx9He/preview-2a9f171ba51c.dir/README.html
/private/var/folders/q2/thf5k95955q8kn6twjrwljbr00jms0/T/RtmplXx9He/preview-2a9f38215992.dir/README.html





1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
51 changes: 51 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:

name: R-CMD-check.yaml

permissions: read-all

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v4

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

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ knitr::opts_chunk$set(

[![License: CC BY
4.0](https://img.shields.io/badge/License-CC_BY_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14355748.svg)](https://zenodo.org/doi/10.5281/zenodo.14355748)
[![R-CMD-check](https://github.com/openwashdata/planetaryhdi/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/openwashdata/planetaryhdi/actions/workflows/R-CMD-check.yaml)

<!-- badges: end -->

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

[![License: CC BY
4.0](https://img.shields.io/badge/License-CC_BY_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14355748.svg)](https://zenodo.org/doi/10.5281/zenodo.14355748)
[![R-CMD-check](https://github.com/openwashdata/planetaryhdi/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/openwashdata/planetaryhdi/actions/workflows/R-CMD-check.yaml)

<!-- badges: end -->

Expand Down Expand Up @@ -68,7 +68,7 @@ planetaryhdi |>
gt::as_raw_html()
```

<div id="upjlzkbhzr" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<div id="putxbpgmos" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
&#10; <table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false" style="-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3;" bgcolor="#FFFFFF">
<thead style="border-style: none;">
<tr class="gt_col_headings" style="border-style: none; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3;">
Expand Down

0 comments on commit a7ffc25

Please sign in to comment.