Skip to content

Commit

Permalink
Merge pull request #1 from HenningLorenzen-ext-bayer/pkgdown
Browse files Browse the repository at this point in the history
Update online documentation
  • Loading branch information
HenningLorenzen-ext-bayer authored Nov 23, 2023
2 parents 880b8ac + 1aa4f88 commit d0ea822
Show file tree
Hide file tree
Showing 38 changed files with 105 additions and 5,278 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
^docs$
^CRAN-RELEASE$
^cran-comments\.md$
^_pkgdown\.yml$
^pkgdown$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
48 changes: 48 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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: [dev, master]
pull_request:
branches: [dev, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

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@v3

- 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/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.Rproj.user
inst/doc
scratch/*.*
.Rhistory
docs
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Description:
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
RoxygenNote: 7.2.3
Depends:
R (>= 3.6.0)
Imports:
Expand All @@ -23,3 +23,5 @@ Suggests:
rmarkdown,
testthat
VignetteBuilder: knitr
URL: https://henninglorenzen-ext-bayer.github.io/Q7/,
https://github.com/iqis/Q7
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ S3method(print,Q7instance)
S3method(print,Q7type)
export("%>%")
export(clone)
export(expose_private)
export(extend)
export(feature)
export(feature_generic)
Expand Down
1 change: 1 addition & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![Travis build status](https://travis-ci.org/iqis/q7.svg?branch=master)](https://travis-ci.org/iqis/q7)
[![CRAN status](https://www.r-pkg.org/badges/version/Q7)](https://CRAN.R-project.org/package=Q7)
<!-- badges: end -->

Q7 is a type system that enables a postmodern flavor of compositional object-oriented programming (OOP). It is simple, flexible and promotes healthy program design.
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![Travis build
status](https://travis-ci.org/iqis/q7.svg?branch=master)](https://travis-ci.org/iqis/q7)
[![CRAN
status](https://www.r-pkg.org/badges/version/Q7)](https://CRAN.R-project.org/package=Q7)
<!-- badges: end -->

Q7 is a type system that enables a postmodern flavor of compositional
Expand All @@ -17,12 +19,12 @@ healthy program design.

Q7 features:

- `type()`, `feature()` and `implement()` to compose objects;
- For each object, `initialize()` and `finalize()` to run at its
beginning and end of life;
- For each object, `public`, `private`, `final`, `private_final` and
`active` binding modifiers to change the visibility and behavior of
its members.
- `type()`, `feature()` and `implement()` to compose objects;
- For each object, `initialize()` and `finalize()` to run at its
beginning and end of life;
- For each object, `public`, `private`, `final`, `private_final` and
`active` binding modifiers to change the visibility and behavior of
its members.

## Installation

Expand All @@ -34,7 +36,6 @@ devtools::install_github("iqis/Q7")
``` r
require(Q7)
#> Loading required package: Q7
#> Loading required package: magrittr
#>
#> Attaching package: 'Q7'
#> The following object is masked from 'package:base':
Expand Down Expand Up @@ -62,7 +63,7 @@ Adder <- type(function(num1, num2){
myAdder <- Adder(1, 2)
```

3, Enjoy\!
3, Enjoy!

``` r
myAdder$add_nums()
Expand Down
3 changes: 3 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
url: https://henninglorenzen-ext-bayer.github.io/Q7/
template:
bootstrap: 5
148 changes: 0 additions & 148 deletions docs/404.html

This file was deleted.

Loading

0 comments on commit d0ea822

Please sign in to comment.