From 384043c1b0fec12479272a42a7b10ed0f8ac9f0e Mon Sep 17 00:00:00 2001 From: Romain Francois Date: Sat, 10 Feb 2024 18:00:42 +0100 Subject: [PATCH] devtools::build_readme() --- README.Rmd | 28 +++++----------------------- README.md | 50 +++++++++++++------------------------------------- 2 files changed, 18 insertions(+), 60 deletions(-) diff --git a/README.Rmd b/README.Rmd index a9ff4a2..fc95e24 100644 --- a/README.Rmd +++ b/README.Rmd @@ -19,40 +19,22 @@ knitr::opts_chunk$set( [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) [![CRAN status](https://www.r-pkg.org/badges/version/valentine)](https://CRAN.R-project.org/package=valentine) [![R-CMD-check](https://github.com/tadascience/valentine/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tadascience/valentine/actions/workflows/R-CMD-check.yaml) -[![Codecov test coverage](https://codecov.io/gh/tadascience/valentine/branch/master/graph/badge.svg)](https://app.codecov.io/gh/tadascience/valentine?branch=master) -The goal of valentine is to ... +The goal of valentine is to spread the love about your +favourite R package. ## Installation You can install the development version of valentine like so: ``` r -# FILL THIS IN! HOW CAN PEOPLE INSTALL YOUR DEV PACKAGE? +pak::pak("tadascience/valentine") ``` ## Example -This is a basic example which shows you how to solve a common problem: - ```{r example} -library(valentine) -## basic example code +valentine::roses("dplyr") +valentine::roses("lubridate", hint = "make it kinky") ``` - -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. diff --git a/README.md b/README.md index 8345fa2..2631ee7 100644 --- a/README.md +++ b/README.md @@ -10,54 +10,30 @@ experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](h [![CRAN status](https://www.r-pkg.org/badges/version/valentine)](https://CRAN.R-project.org/package=valentine) [![R-CMD-check](https://github.com/tadascience/valentine/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tadascience/valentine/actions/workflows/R-CMD-check.yaml) -[![Codecov test -coverage](https://codecov.io/gh/tadascience/valentine/branch/master/graph/badge.svg)](https://app.codecov.io/gh/tadascience/valentine?branch=master) -The goal of valentine is to โ€ฆ +The goal of valentine is to spread the love about your favourite R +package. ## Installation You can install the development version of valentine like so: ``` r -# FILL THIS IN! HOW CAN PEOPLE INSTALL YOUR DEV PACKAGE? +pak::pak("tadascience/valentine") ``` ## Example -This is a basic example which shows you how to solve a common problem: - -``` r -library(valentine) -#> -#> Attaching package: 'valentine' -#> The following object is masked from 'package:utils': -#> -#> prompt -## 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 +valentine::roses("dplyr") +#> Roses are red ๐ŸŒน +#> dplyr is fierce and fast ๐Ÿ’ช +#> Filtering, sorting, and group by ๐Ÿงฉ +#> Data wrangling made a blast! ๐Ÿ’ฅ +valentine::roses("lubridate", hint = "make it kinky") +#> Roses are red ๐ŸŒน +#> Lubridate's syntax yearns to be fed ๐Ÿ—“๏ธ +#> With time manipulation, it'll make you swoon ๐Ÿ˜ +#> Get kinky with dates, all through the moon ๐ŸŒ™ ``` - -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: - - - -In that case, donโ€™t forget to commit and push the resulting figure -files, so they display on GitHub and CRAN.