Skip to content

Commit

Permalink
Use pm check and set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhian Davies committed Aug 24, 2022
1 parent cf65f58 commit d4f7722
Show file tree
Hide file tree
Showing 11 changed files with 82 additions and 29 deletions.
8 changes: 8 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
^.*\.Rproj$
^\.Rproj\.user$
^\.gitlab-ci\.yml$
^\.lintr$
^_
_files$
^CONTRIBUTING\.md$
^CODEOWNERS$
docs
/rsconnect/
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,26 @@
git_clone_*
inst/test_files/notebook_files/*
inst/test_files/*.tex
.Rapp.history
*-Ex.R
/*.tar.gz
/*.Rcheck/
.Rproj.user/
vignettes/*.html
vignettes/*.pdf
.httr-oauth
*_cache/
/cache/
*.utf8.md
*.knit.md
rsconnect/
.Renviron
.DS_Store
*_files/
po/*~
inst/doc
.env
.secrets
.jrtemplate.yml
*.env
*.swp
18 changes: 18 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Values should be 0, unless reasons given
variables:
ALLOWED_WARNINGS: 0
ALLOWED_NOTES: 0
NO_IMPORTS: 0
#disable_verify_r_package: "false"
#DRAT_PUBLISH: "true"

# This will include the project template main.yml
include:
- project: jumpingrivers/products/rdev/r-package
ref: $JR_CI_TEMPLATES_DEFAULT_BRANCH
file: /.ci/main.yml
rules:
- if: $CI_PROJECT_PATH != "jumpingrivers/products/rdev/r-package"
- local: /.ci/main.yml
rules:
- if: $CI_PROJECT_PATH == "jumpingrivers/products/rdev/r-package"
14 changes: 14 additions & 0 deletions .lintr
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
linters: linters_with_defaults(
assignment_linter = NULL,
cyclocomp_linter(complexity_limit = 25),
line_length_linter(100),
undesirable_operator_linter(
modify_defaults(
default_undesirable_operators,
"<-" = "Use =, not <-, for assignment."
)
)
)
exclusions: list(
"^cache/"
)
12 changes: 12 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# JR - This defines the maintainer(s) of a repo or the people responsible for different parts thereof.
# The below line will make csgillespie the owner unless it is overriden with the actual owner.

* @shane82 @dataccino @statsrhian @csgillespie
# More examples:
# https://docs.gitlab.com/ee/user/project/code_owners.html#example-codeowners-file
#
# All files of a type:
# *.Rmd @someone-who-likes-rmd
#
# All files in a directory (recursively):
# /docs/ @all-docs @another-person
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Version: 0.1.0
Author: Shane Halloran
Maintainer: Shane Halloran <[email protected]>
Description: Testing whether data scientists can do what they expect in RStudio/Workbench.
License: Proprietary
License: file LICENSE
Encoding: UTF-8
LazyData: true
Suggests:
Expand Down
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Proprietary

Do not distribute outside of Jumping Rivers Ltd.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# {{ package_name }} 0.0.1 *2021-01-01*

- Initial commit
18 changes: 0 additions & 18 deletions R/hello.R

This file was deleted.

1 change: 0 additions & 1 deletion tests/testthat/test-memory_and_processing.R

This file was deleted.

9 changes: 0 additions & 9 deletions tests/testthat/test-permissions.R

This file was deleted.

0 comments on commit d4f7722

Please sign in to comment.