Skip to content

Commit

Permalink
Init project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jun 10, 2024
1 parent aeeea58 commit 97c48b8
Show file tree
Hide file tree
Showing 10 changed files with 779 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
^surreal\.Rproj$
^\.Rproj\.user$
^README\.Rmd$
^_pkgdown\.yml$
^docs$
^pkgdown$
^\.github$
^LICENSE\.md$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
34 changes: 34 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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

permissions: read-all

jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
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
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
50 changes: 50 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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]
release:
types: [published]
workflow_dispatch:

name: pkgdown

permissions: read-all

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
clean: false
branch: gh-pages
folder: docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.httr-oauth
.DS_Store
.quarto
docs
20 changes: 12 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
Package: surreal
Title: What the Package Does (One Line, Title Case)
Title: Generate Data with Hidden Images in Residual Plots
Version: 0.0.0.9000
Authors@R:
person("First", "Last", , "first.last@example.com", role = c("aut", "cre"),
comment = c(ORCID = "YOUR-ORCID-ID"))
Description: What the package does (one paragraph).
License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a
license
Authors@R: c(
person("James Joseph", "Balamuta", email = "james.balamuta@gmail.com",
role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0003-2826-8458"))
)
Description: Generate data sets so that the plot of residuals versus predicted
values from the least squares fit of the correct model reveals a hidden
image or message.
License: GPL (>= 3)
Depends: R (>= 4.3.0)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
URL: https://github.com/coatless-rpkg/surreal
URL: https://github.com/coatless-rpkg/surreal, https://r-pkg.thecoatlessprofessor.com/surreal/
BugReports: https://github.com/coatless-rpkg/surreal/issues
595 changes: 595 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
output: github_document
---

<!-- README.md is generated from README.Rmd. Please edit that file -->

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# surreal

<!-- badges: start -->
[![R-CMD-check](https://github.com/coatless-rpkg/surreal/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/surreal/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

The goal of surreal is to implement the methods inside the paper "Residual Sur(Realism)"
by [Leonard A. Stefanski](https://www4.stat.ncsu.edu/~stefansk/) ([2007, TAS, Vol. 61, pp 163-177](https://www.tandfonline.com/doi/abs/10.1198/000313007X190079)).

## Installation

You can install the development version of surreal from [GitHub](https://github.com/) with:

``` r
# install.packages("remotes")
remotes::install_github("coatless-rpkg/surreal")
```

## Example

This is a basic example which shows you how to solve a common problem:

```{r example}
library(surreal)
## basic example code
```

34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# surreal

<!-- badges: start -->

[![R-CMD-check](https://github.com/coatless-rpkg/surreal/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/surreal/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

The goal of surreal is to implement the methods inside the paper
“Residual Sur(Realism)” by [Leonard A.
Stefanski](https://www4.stat.ncsu.edu/~stefansk/) ([2007, TAS, Vol. 61,
pp
163-177](https://www.tandfonline.com/doi/abs/10.1198/000313007X190079)).

## Installation

You can install the development version of surreal from
[GitHub](https://github.com/) with:

``` r
# install.packages("remotes")
remotes::install_github("coatless-rpkg/surreal")
```

## Example

This is a basic example which shows you how to solve a common problem:

``` r
library(surreal)
## basic example code
```
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
url: https://r-pkg.thecoatlessprofessor.com/surreal/
template:
bootstrap: 5

0 comments on commit 97c48b8

Please sign in to comment.