-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/rostools/prodigenr
- Loading branch information
Showing
18 changed files
with
185 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
^CRAN-RELEASE$ | ||
^\.github$ | ||
^CRAN-SUBMISSION$ | ||
^justfile$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Assign PR to creator | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- reopened | ||
- opened | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
assign-pr-to-creator: | ||
name: Assign PR to creator | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Assign PR to creator | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: | | ||
gh pr edit $PR --add-assignee $AUTHOR | ||
env: | ||
AUTHOR: ${{ github.event.pull_request.user.login }} | ||
PR: ${{ github.event.pull_request.html_url }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
linters: linters_with_defaults( | ||
line_length_linter(100), | ||
commented_code_linter = NULL | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
|
||
rstudio_setup <- function(path, ...) { | ||
# create project | ||
setup_project(path = path) | ||
invisible(NULL) | ||
# create project | ||
setup_project(path = path) | ||
invisible(NULL) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
is_rproj_folder <- function() { | ||
rprojroot::is.root_criterion(rprojroot::is_rstudio_project) | ||
rprojroot::is.root_criterion(rprojroot::is_rstudio_project) | ||
} | ||
|
||
viz_project_tree <- function(path) { | ||
withr::with_dir(fs::path_dir(path), | ||
{fs::dir_tree(basename(path), all = TRUE)}) | ||
withr::with_dir(fs::path_dir(path), { | ||
fs::dir_tree(basename(path), all = TRUE) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,51 @@ | ||
# These are for admin tasks that really only need to be done once or twice | ||
|
||
@_default: | ||
just --list --unsorted | ||
just --list --unsorted | ||
|
||
# Run build recipes and install the package | ||
build: style document test install-package check | ||
# Run all recipes | ||
run-all: install-package-dependencies document spell-check style lint test build-site check install-package | ||
|
||
# Install the package and its dependencies | ||
install-package: | ||
# Install package dependencies | ||
install-package-dependencies: | ||
#!/usr/bin/Rscript | ||
devtools::install() | ||
pak::pak(ask = FALSE) | ||
|
||
# Run document generators | ||
document: | ||
#!/usr/bin/Rscript | ||
devtools::document() | ||
|
||
# Run tests | ||
test: | ||
test: | ||
#!/usr/bin/Rscript | ||
devtools::test() | ||
|
||
# Re-build Roxygen docs | ||
document: | ||
# Check spelling | ||
spell-check: | ||
#!/usr/bin/Rscript | ||
devtools::document() | ||
devtools::spell_check() | ||
|
||
# Run style formatter | ||
style: | ||
# Style all R code | ||
style: | ||
#!/usr/bin/Rscript | ||
styler::style_pkg() | ||
|
||
# Run CRAN check | ||
# Run linter | ||
lint: | ||
#!/usr/bin/Rscript | ||
devtools::lint( | ||
) | ||
|
||
# Build pkgdown website | ||
build-site: | ||
#!/usr/bin/Rscript | ||
devtools::build_site() | ||
|
||
# Run local CRAN checks | ||
check: | ||
#!/usr/bin/Rscript | ||
devtools::check() | ||
|
||
# Install prodigenr as a package | ||
install-package: install-package-dependencies | ||
#!/usr/bin/Rscript | ||
devtools::install() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.