Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Dec 6, 2024
1 parent ebfc161 commit d244440
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 44 deletions.
22 changes: 5 additions & 17 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ knitr::opts_chunk$set(
)
```

# opengraph
# opengraph <img src="man/figures/logo.png" align="right" height="132" alt="" />

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

The goal of opengraph is to ...
The goal of `opengraph` is to read and process Open Graph Protocol HTML on websites.

## Installation

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

``` r
# install.packages('pak')
Expand All @@ -37,20 +37,8 @@ This is a basic example which shows you how to solve a common problem:
```{r example}
library(opengraph)
## basic example code
url <- "https://www.r-project.org/"
og_parse(url)
```

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.
34 changes: 7 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@

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

# opengraph
# opengraph <img src="man/figures/logo.png" align="right" height="132" alt="" />

<!-- badges: start -->

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

The goal of opengraph is to …
The goal of `opengraph` is to read and process Open Graph Protocol HTML
on websites.

## Installation

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

``` r
Expand All @@ -27,28 +28,7 @@ This is a basic example which shows you how to solve a common problem:
``` r
library(opengraph)
## basic example code
url <- "https://www.r-project.org/"
og_parse(url)
#> named character(0)
```

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.
Binary file added man/figures/logo.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 d244440

Please sign in to comment.