Skip to content

Commit

Permalink
on CRAN installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoene committed Jan 14, 2021
1 parent d7643d6 commit 3180c06
Show file tree
Hide file tree
Showing 19 changed files with 878 additions and 159 deletions.
2 changes: 0 additions & 2 deletions CRAN-RELEASE

This file was deleted.

35 changes: 8 additions & 27 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,17 @@

A convenient logger for R, shiny, and plumber.

[Get Started](/guide/get-started){: .md-button }
[Get Started](/guide/get-started){: .md-button .md-button--primary }
[Install](/installation){: .md-button }

## Installation

Titan is not yet available on CRAN, it can be obtained from [Github](https://github.com/devOpifex/titan) in a variety of ways.

### remotes

You can use the `remotes` package.

```r
# install.packages("remotes")
remotes::install_github("devOpifex/titan")
```

### pak

You can use the `pak` package.
## Example

```r
# install.packages("pak")
pak::pkg_install("devOpifex/titan")
```
log <- Logger$new(prefix = "INFO")

### devtools
log$log("Something")
#> INFO Something

You can use the `devtools` package.

```r
# install.packages("devtools")
devtools::install_github("devOpifex/titan")
log$log("Something else")
#> INFO Something else
```

43 changes: 43 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Installation

Install the stable version for production, or install the dev version if you want the latest features but it may be somewhat unstable.

## Stable

The stable version is available from CRAN.

```r
install.packages("log")
```

## Dev

The dev version can be obtained from [Github](https://github.com/devOpifex/log) in a variety of ways.

### remotes

You can use the `remotes` package.

```r
# install.packages("remotes")
remotes::install_github("devOpifex/titan")
```

### pak

You can use the `pak` package.

```r
# install.packages("pak")
pak::pkg_install("devOpifex/titan")
```

### devtools

You can use the `devtools` package.

```r
# install.packages("devtools")
devtools::install_github("devOpifex/titan")
```

1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ markdown_extensions:

nav:
- Home: index.md
- Installation: installation.md
- Guide:
- Get Started: guide/get-started.md
- Templates: guide/templates.md
Expand Down
18 changes: 15 additions & 3 deletions site/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,27 @@



<li class="md-nav__item">
<a href="/installation/" class="md-nav__link">
Installation
</a>
</li>







<li class="md-nav__item md-nav__item--nested">

<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2" >
<label class="md-nav__link" for="nav-2">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" >
<label class="md-nav__link" for="nav-3">
Guide
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Guide" data-md-level="1">
<label class="md-nav__title" for="nav-2">
<label class="md-nav__title" for="nav-3">
<span class="md-nav__icon md-icon"></span>
Guide
</label>
Expand Down
18 changes: 15 additions & 3 deletions site/guide/ambiorix/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,30 @@




<li class="md-nav__item">
<a href="../../installation/" class="md-nav__link">
Installation
</a>
</li>









<li class="md-nav__item md-nav__item--active md-nav__item--nested">

<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2" checked>
<label class="md-nav__link" for="nav-2">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" checked>
<label class="md-nav__link" for="nav-3">
Guide
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Guide" data-md-level="1">
<label class="md-nav__title" for="nav-2">
<label class="md-nav__title" for="nav-3">
<span class="md-nav__icon md-icon"></span>
Guide
</label>
Expand Down
18 changes: 15 additions & 3 deletions site/guide/erratum/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,30 @@




<li class="md-nav__item">
<a href="../../installation/" class="md-nav__link">
Installation
</a>
</li>









<li class="md-nav__item md-nav__item--active md-nav__item--nested">

<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2" checked>
<label class="md-nav__link" for="nav-2">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" checked>
<label class="md-nav__link" for="nav-3">
Guide
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Guide" data-md-level="1">
<label class="md-nav__title" for="nav-2">
<label class="md-nav__title" for="nav-3">
<span class="md-nav__icon md-icon"></span>
Guide
</label>
Expand Down
22 changes: 17 additions & 5 deletions site/guide/get-started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,30 @@




<li class="md-nav__item">
<a href="../../installation/" class="md-nav__link">
Installation
</a>
</li>









<li class="md-nav__item md-nav__item--active md-nav__item--nested">

<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2" checked>
<label class="md-nav__link" for="nav-2">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" checked>
<label class="md-nav__link" for="nav-3">
Guide
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Guide" data-md-level="1">
<label class="md-nav__title" for="nav-2">
<label class="md-nav__title" for="nav-3">
<span class="md-nav__icon md-icon"></span>
Guide
</label>
Expand Down Expand Up @@ -744,7 +756,7 @@ <h2 id="predicate">Predicate<a class="headerlink" href="#predicate" title="Perma
<div class="md-footer-nav">
<nav class="md-footer-nav__inner md-grid" aria-label="Footer">

<a href="../.." class="md-footer-nav__link md-footer-nav__link--prev" rel="prev">
<a href="../../installation/" class="md-footer-nav__link md-footer-nav__link--prev" rel="prev">
<div class="md-footer-nav__button md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
</div>
Expand All @@ -753,7 +765,7 @@ <h2 id="predicate">Predicate<a class="headerlink" href="#predicate" title="Perma
<span class="md-footer-nav__direction">
Previous
</span>
Home
Installation
</div>
</div>
</a>
Expand Down
18 changes: 15 additions & 3 deletions site/guide/plumber/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,30 @@




<li class="md-nav__item">
<a href="../../installation/" class="md-nav__link">
Installation
</a>
</li>









<li class="md-nav__item md-nav__item--active md-nav__item--nested">

<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2" checked>
<label class="md-nav__link" for="nav-2">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" checked>
<label class="md-nav__link" for="nav-3">
Guide
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Guide" data-md-level="1">
<label class="md-nav__title" for="nav-2">
<label class="md-nav__title" for="nav-3">
<span class="md-nav__icon md-icon"></span>
Guide
</label>
Expand Down
18 changes: 15 additions & 3 deletions site/guide/shiny/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,30 @@




<li class="md-nav__item">
<a href="../../installation/" class="md-nav__link">
Installation
</a>
</li>









<li class="md-nav__item md-nav__item--active md-nav__item--nested">

<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2" checked>
<label class="md-nav__link" for="nav-2">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" checked>
<label class="md-nav__link" for="nav-3">
Guide
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Guide" data-md-level="1">
<label class="md-nav__title" for="nav-2">
<label class="md-nav__title" for="nav-3">
<span class="md-nav__icon md-icon"></span>
Guide
</label>
Expand Down
20 changes: 16 additions & 4 deletions site/guide/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,30 @@




<li class="md-nav__item">
<a href="../../installation/" class="md-nav__link">
Installation
</a>
</li>









<li class="md-nav__item md-nav__item--active md-nav__item--nested">

<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2" checked>
<label class="md-nav__link" for="nav-2">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" checked>
<label class="md-nav__link" for="nav-3">
Guide
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Guide" data-md-level="1">
<label class="md-nav__title" for="nav-2">
<label class="md-nav__title" for="nav-3">
<span class="md-nav__icon md-icon"></span>
Guide
</label>
Expand Down Expand Up @@ -406,7 +418,7 @@ <h1 id="templates">Templates<a class="headerlink" href="#templates" title="Perma
17</pre></div></td><td class="code"><div class="highlight"><pre><span></span><code><span class="n">foo</span> <span class="o">&lt;-</span> <span class="nf">function</span><span class="p">(){</span>
<span class="n">info</span> <span class="o">&lt;-</span> <span class="nf">infoLog</span><span class="p">()</span>
<span class="n">error</span> <span class="o">&lt;-</span> <span class="nf">errorLog</span><span class="p">()</span>
<span class="n">warn</span> <span class="o">&lt;-</span> <span class="nf">warnLog</span><span class="p">()</span>
<span class="n">warn</span> <span class="o">&lt;-</span> <span class="nf">warningLog</span><span class="p">()</span>
<span class="n">success</span> <span class="o">&lt;-</span> <span class="nf">successLog</span><span class="p">()</span>

<span class="n">info</span><span class="o">$</span><span class="nf">log</span><span class="p">(</span><span class="s">&quot;Some information&quot;</span><span class="p">)</span>
Expand Down
Loading

0 comments on commit 3180c06

Please sign in to comment.