Skip to content

Commit

Permalink
added README.Rmd via usethis::use_readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rainer-rq-koelle committed Jun 27, 2024
1 parent 27c020a commit 1c06711
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
^docs$
^pkgdown$
^\.github$
^README\.Rmd$
55 changes: 55 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
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%"
)
```

# ansperf

<!-- badges: start -->
<!-- badges: end -->

The goal of ansperf is to ...

## Installation

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

``` r
# install.packages("devtools")
devtools::install_github("euctrl-pru/ansperf")
```

## Example

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

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

What is special about using `README.Rmd` instead of just `README.md`? You can include R chunks like so:

```{r cars}
summary(cars)
```

You'll still need to render `README.Rmd` regularly, to keep `README.md` up-to-date. `devtools::build_readme()` is handy for this.

You can also embed plots, for example:

```{r pressure, echo = FALSE}
plot(pressure)
```

In that case, don't forget to commit and push the resulting figure files, so they display on GitHub and CRAN.
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

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

# ansperf

<!-- badges: start -->
<!-- badges: end -->

The goal of ansperf is to …

## Installation

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

``` r
# install.packages("devtools")
devtools::install_github("euctrl-pru/ansperf")
```

## Example

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

``` r
library(ansperf)
## basic example code
```

What is special about using `README.Rmd` instead of just `README.md`?
You can include R chunks like so:

``` r
summary(cars)
#> speed dist
#> Min. : 4.0 Min. : 2.00
#> 1st Qu.:12.0 1st Qu.: 26.00
#> Median :15.0 Median : 36.00
#> Mean :15.4 Mean : 42.98
#> 3rd Qu.:19.0 3rd Qu.: 56.00
#> Max. :25.0 Max. :120.00
```

You’ll still need to render `README.Rmd` regularly, to keep `README.md`
up-to-date. `devtools::build_readme()` is handy for this.

You can also embed plots, for example:

<img src="man/figures/README-pressure-1.png" width="100%" />

In that case, don’t forget to commit and push the resulting figure
files, so they display on GitHub and CRAN.
1 change: 1 addition & 0 deletions _xREADME-SETUP
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ setup packagedown
usethis::use_pkgdown()
* (modify _pkgdown.yml)
* setup pkgdown workflow: usethis::use_pkgdown_github_pages()
* usethis::use_readme_rmd()

create functions
* usethis::use_r("function-name-file")
Expand Down
Binary file added man/figures/README-pressure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c06711

Please sign in to comment.