Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial setup #8

Merged
merged 6 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
auto-update: true
auto-update: false
gitleaks:
name: gitleaks 💧
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
name: Style Check 👗
uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main
with:
auto-update: true
auto-update: false
grammar:
if: github.event_name != 'push'
name: Grammar Check 🔤
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,15 @@ on:
workflow_dispatch:

jobs:
dependency-test:
strategy:
fail-fast: false
matrix:
test-strategy: ["min_cohort", "min_isolated", "release", "max"]
uses: insightsengineering/r.pkg.template/.github/workflows/verdepcheck.yaml@main
name: Dependency Test - ${{ matrix.test-strategy }} 🔢
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
GCHAT_WEBHOOK: ${{ secrets.GCHAT_WEBHOOK }}
with:
strategy: ${{ matrix.test-strategy }}
additional-env-vars: |
PKG_SYSREQS_DRY_RUN=true
branch-cleanup:
name: Branch Cleanup 🧹
uses: insightsengineering/r.pkg.template/.github/workflows/branch-cleanup.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
last-commit-age-days: 365
cran-status:
name: CRAN Status Monitor 📺
uses: insightsengineering/r.pkg.template/.github/workflows/cran-status.yaml@main
with:
issue-assignees: "shajoezhu,Melkiades,edelarua,gmbecker,ayogasekaram"
issue-assignees: "ddsjoberg"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ docs
# others
.DS_Store
temp/


.pre-commit-config.yaml
71 changes: 0 additions & 71 deletions .pre-commit-config.yaml

This file was deleted.

10 changes: 6 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Package: cardx
Title: R Package to Supplement ARD Functions Found in {cards}
Title: Extra Analysis Results Data Utilities
Version: 0.0.0.9005
Date: 2024-01-23
Authors@R: c(
person("Daniel", "Sjoberg", , "[email protected]", role = c("aut", "cre")),
person("F. Hoffmann-La Roche AG", role = c("cph", "fnd"))
Expand All @@ -13,13 +12,16 @@ BugReports: https://github.com/insightsengineering/cardx/issues
Depends:
R (>= 4.0)
Imports:
utils
cards (>= 0.0.0.9012)
Suggests:
testthat (>= 3.2.0)
Remotes:
insightsengineering/cards
Config/Needs/website: insightsengineering/nesttemplate
Config/testthat/edition: 3
Config/testthat/parallel: true
Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.0
Empty file removed R/.gitkeep
Empty file.
6 changes: 6 additions & 0 deletions R/cardx-package.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#' @keywords internal
"_PACKAGE"

## usethis namespace: start
## usethis namespace: end
NULL
16 changes: 8 additions & 8 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ navbar:
structure:
left: [intro, reference, articles, tutorials, news, reports]
right: [search, github]
components:
reports:
text: Reports
menu:
- text: Coverage report
href: coverage-report/
- text: Unit test report
href: unit-test-report/
# components:
# reports:
# text: Reports
# menu:
# - text: Coverage report
# href: coverage-report/
# - text: Unit test report
# href: unit-test-report/
github:
icon: fa-github
href: https://github.com/insightsengineering/cardx
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ARD
Forkers
Hoffmann
funder
repo
Empty file removed man/.gitkeep
Empty file.
28 changes: 28 additions & 0 deletions man/cardx-package.Rd

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

5 changes: 0 additions & 5 deletions staged_dependencies.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pkg_name <- "cardx"
library(testthat)
test_check(pkg_name, reporter = ParallelProgressReporter$new())
test_check("cardx")
Empty file removed tests/testthat/.gitkeep
Empty file.
35 changes: 0 additions & 35 deletions tests/testthat/setup.R

This file was deleted.

3 changes: 3 additions & 0 deletions tests/testthat/test-delete_me.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test_that("multiplication works", {
expect_equal(2 * 2, 4)
})
Loading