Skip to content

Commit

Permalink
gh action, rhub run, tried revdep
Browse files Browse the repository at this point in the history
  • Loading branch information
notPlancha committed Jan 28, 2024
1 parent d72269c commit 0734df9
Show file tree
Hide file tree
Showing 9 changed files with 157 additions and 5 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
^\.github$
^NOTICE$
^LICENSE$
^revdep$
22 changes: 21 additions & 1 deletion .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@ require(pak)
require(devtools)
require(conflicted)
require(desc)
# pak("r-lib/revdepcheck")
# pak("jumpingrivers/inteRgrate")
## https://www.r-bloggers.com/2020/07/how-to-write-your-own-r-package-and-publish-it-on-cran/

d <- desc::desc()
tryit <- \() {devtools::load_all()}
build_docs <- \() {devtools::document()}
local_check <- \() {devtools::check()}
multi_check <- \() {
ch <- devtools::check_rhub()
ch
}
print_cran_comments <- \(ch) {
ch$cran_summary()
}
#revdep <- \() {revdepcheck::use_revdep()} # n percebi o q faz e n consegui correr
devel_check <- \() {
usethis::use_github_action()
}

tryit <- \() {devtools::load_all()}
goodpractice_check <- \() {
goodpractice::gp()
}
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
49 changes: 49 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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:
branches: [main, master]

name: R-CMD-check

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@v3

- 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
4 changes: 2 additions & 2 deletions R/sync.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pull <- function(
#' @seealso [push()], [pull()]
#' @examples
#' \dontrun{
#' sync() # will sync all settings, is what's run when called by addin
#' sync() # will sync all settings, is what's run when called by addin
#' sync(write= FALSE) # dry run, will not write to files or push to gd
#' sync(auth= FALSE) # will not authenticate with gd, will use already authenticated
#' }
Expand Down Expand Up @@ -255,7 +255,7 @@ full_choose <- function(df) {
# if a column is different then let user choose between the 2
forAllChosen <- NULL
ret <- list()
for (i in 1:ncol(df)) {
for (i in seq_along(df)) {
name <- names(df)[i]
chosen <- NULL
if (df[1, i] != df[2, i]) {
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- badges: start -->
[![R-CMD-check](https://github.com/notPlancha/settingsSync/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/notPlancha/settingsSync/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

# settingsSync
R package and Rstudio Addin to sync its settings, keymaps and keyboard shortcuts, using Google Drive.

Expand All @@ -16,4 +20,4 @@ You can directly call `settingsSync::sync()`, or use the Rstudio Addin (they do
TODO

## Contributing
Feel free to open an issue or a PR.
Feel free to open an issue or a PR.
70 changes: 70 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
## Test environments
- R-hub windows-x86_64-devel (r-devel)
- R-hub ubuntu-gcc-release (r-release)
- R-hub fedora-clang-devel (r-devel)

## R CMD check results
❯ On windows-x86_64-devel (r-devel)
checking CRAN incoming feasibility ... NOTE
Maintainer: 'notPlancha <Andre_Plancha@iscte-iul.pt>'

New submission

Possibly misspelled words in DESCRIPTION:
Addin (3:16, 9:22)
Keymaps (3:43)
Rstudio (3:8, 9:14)
keymaps (9:46)

> dev note: not misspelled
❯ On windows-x86_64-devel (r-devel)
checking for non-standard things in the check directory ... NOTE
Found the following files/directories:
''NULL''

> dev note: rhub thing https://github.com/r-hub/rhub/issues/560
❯ On windows-x86_64-devel (r-devel)
checking for detritus in the temp directory ... NOTE
Found the following files/directories:
'lastMiKTeXException'

> dev note: rhub bug https://github.com/r-hub/rhub/issues/503
❯ On ubuntu-gcc-release (r-release)
checking CRAN incoming feasibility ... [6s/27s] NOTE
Maintainer: ‘notPlancha <Andre_Plancha@iscte-iul.pt>

New submission

Possibly misspelled words in DESCRIPTION:
Addin (3:16, 9:22)
keymaps (9:46)
Keymaps (3:43)
Rstudio (3:8, 9:14)

> dev note: not misspelled

❯ On ubuntu-gcc-release (r-release), fedora-clang-devel (r-devel)
checking HTML version of manual ... NOTE
Skipping checking HTML validation: no command 'tidy' found

> dev note: rhub bug https://github.com/r-hub/rhub/issues/548
❯ On fedora-clang-devel (r-devel)
checking CRAN incoming feasibility ... [6s/34s] NOTE
Maintainer: ‘notPlancha <Andre_Plancha@iscte-iul.pt>

New submission

Possibly misspelled words in DESCRIPTION:
Addin (3:16, 9:22)
Keymaps (3:43)
Rstudio (3:8, 9:14)
keymaps (9:46)

> dev note: not misspelled
0 errors ✔ | 0 warnings ✔ | 6 notes ✖
2 changes: 1 addition & 1 deletion man/sync.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions revdep/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
checks
library
checks.noindex
library.noindex
cloud.noindex
data.sqlite
*.html

0 comments on commit 0734df9

Please sign in to comment.