Skip to content

Commit c45b030

Browse files
committed
Initial version of package
1 parent 6c8474a commit c45b030

113 files changed

Lines changed: 417 additions & 22 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
^.*\.Rproj$
2+
^\.Rproj\.user$
3+
^ISCAM\.Rproj$
4+
^LICENSE\.md$
5+
^cran-comments\.md$
6+
^\.github$
7+
^_pkgdown\.yml$
8+
^docs$
9+
^pkgdown$
10+
^CITATION\.cff$
11+
^\.envrc$
12+
^air\.toml$
13+
^flake\.lock$
14+
^flake\.nix$
15+
^dev$
16+
^\.vscode$
17+
^[.]?air[.]toml$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# ENABLE WHEN ALL DATA ARE DOCUMENTED
2+
3+
# # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
4+
# # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
5+
# on:
6+
# push:
7+
# branches: [main, master]
8+
# pull_request:
9+
10+
# name: R-CMD-check.yaml
11+
12+
# permissions: read-all
13+
14+
# jobs:
15+
# R-CMD-check:
16+
# runs-on: ${{ matrix.config.os }}
17+
18+
# name: ${{ matrix.config.os }} (${{ matrix.config.r }})
19+
20+
# strategy:
21+
# fail-fast: false
22+
# matrix:
23+
# config:
24+
# - {os: macos-latest, r: 'release'}
25+
# - {os: windows-latest, r: 'release'}
26+
# - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
27+
# - {os: ubuntu-latest, r: 'release'}
28+
# - {os: ubuntu-latest, r: 'oldrel-1'}
29+
30+
# env:
31+
# GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
32+
# R_KEEP_PKG_SOURCE: yes
33+
34+
# steps:
35+
# - uses: actions/checkout@v4
36+
37+
# - uses: r-lib/actions/setup-pandoc@v2
38+
39+
# - uses: r-lib/actions/setup-r@v2
40+
# with:
41+
# r-version: ${{ matrix.config.r }}
42+
# http-user-agent: ${{ matrix.config.http-user-agent }}
43+
# use-public-rspm: true
44+
45+
# - uses: r-lib/actions/setup-r-dependencies@v2
46+
# with:
47+
# extra-packages: any::rcmdcheck
48+
# needs: check
49+
50+
# - uses: r-lib/actions/check-r-package@v2
51+
# with:
52+
# upload-snapshots: true
53+
# build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build ISCAM workspace
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build-rdata:
14+
if: ${{ github.actor != 'github-actions[bot]' }}
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- uses: r-lib/actions/setup-r@v2
23+
- uses: r-lib/actions/setup-r-dependencies@v2
24+
with:
25+
extra-packages: any::devtools
26+
27+
- run: mkdir -p docs
28+
29+
- name: Generate RData workspace file
30+
run: |
31+
devtools::load_all()
32+
iscamdata <- ls(getNamespace("ISCAM"), all.names = TRUE)
33+
iscamdata <- c(
34+
iscamdata[
35+
!iscamdata %in%
36+
c(
37+
".__DEVTOOLS__",
38+
".__NAMESPACE__.",
39+
".__S3MethodsTable__.",
40+
".packageName"
41+
)
42+
],
43+
Sys.glob("data/*.rda") |> basename() |> gsub("\\.rda$", "", x = _)
44+
)
45+
save(list = iscamdata, file = "docs/ISCAM.RData")
46+
shell: Rscript {0}
47+
48+
- uses: stefanzweifel/git-auto-commit-action@v5
49+
with:
50+
commit_message: "chore: update ISCAM.RData [skip ci]"
51+
file_pattern: dev/ISCAM.RData
52+

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"Posit.air-vscode"
4+
]
5+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"[r]": {
3+
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "Posit.air-vscode"
5+
},
6+
"[quarto]": {
7+
"editor.formatOnSave": true,
8+
"editor.defaultFormatter": "quarto.quarto"
9+
}
10+
}

DESCRIPTION

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Package: ISCAMData
2+
Title: Data for the Book "Investigating Statistical Concepts,
3+
Applications, and Methods"
4+
Version: 0.0.0.9000
5+
Authors@R: c(
6+
person("Beth", "Chance", , "bchance@calpoly.edu", role = c("cre", "aut", "cph")),
7+
person("Visruth", "Srimath Kandali", , "visruth@gmail.com", role = "aut",
8+
comment = c(ORCID = "0009-0005-9097-0688"))
9+
)
10+
Description: This package stores a number of data sets to go with the
11+
ISCAM textbook and package.
12+
License: MIT + file LICENSE
13+
Depends:
14+
R (>= 3.5)
15+
Encoding: UTF-8
16+
LazyData: true
17+
Roxygen: list(markdown = TRUE)
18+
RoxygenNote: 7.3.2

LICENSE

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,2 @@
1-
MIT License
2-
3-
Copyright (c) 2025 ISCAM4
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
YEAR: 2025
2+
COPYRIGHT HOLDER: ISCAMData authors

LICENSE.md

Lines changed: 21 additions & 0 deletions

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Generated by roxygen2: do not edit by hand
2+

0 commit comments

Comments
 (0)