Browse Source

Tweak README

master
Lukas Burk 1 year ago
parent
commit
ab431f432b
Signed by: lukas GPG Key ID: 044E8B20BB186F81
3 changed files with 24 additions and 11 deletions
  1. +2
    -0
      .gitignore
  2. +8
    -2
      README.Rmd
  3. +14
    -9
      README.md

+ 2
- 0
.gitignore View File

@ -21,3 +21,5 @@ inst/doc/*
tRakt.Rcheck/
tRakt*.tar.gz
tRakt*.tgz
README.html
README_cache

+ 8
- 2
README.Rmd View File

@ -6,6 +6,7 @@ output: github_document
```{r setup, include = FALSE}
knitr::opts_chunk$set(
cache = TRUE,
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
@ -14,7 +15,9 @@ knitr::opts_chunk$set(
)
```
# tRakt <img src="https://jemus42.github.io/tRakt/reference/figures/logo.png" align="right" height="140"/>
# tRakt
<img src="https://jemus42.github.io/tRakt/reference/figures/logo.png" align="right" height="140"/>
<!-- badges: start -->
[![Travis (.org)](https://img.shields.io/travis/jemus42/tRakt.svg?logo=travis)](https://travis-ci.org/jemus42/tRakt)
@ -35,8 +38,11 @@ Please note that while this package is *basically* an API-client, it is a little
Get it from GitHub:
```r
if (!require("remotes")) install.packages("remotes")
if (!("remotes" %in% installed.packages())) {
install.packages("remotes")
}
remotes::install_github("jemus42/tRakt")
library("tRakt")
```


+ 14
- 9
README.md View File

@ -1,7 +1,9 @@
<!-- README.md is generated from README.Rmd. Please edit that file -->
# tRakt <img src="https://jemus42.github.io/tRakt/reference/figures/logo.png" align="right" height="140"/>
# tRakt
<img src="https://jemus42.github.io/tRakt/reference/figures/logo.png" align="right" height="140"/>
<!-- badges: start -->
@ -40,8 +42,11 @@ of the API results would look like.
Get it from GitHub:
``` r
if (!require("remotes")) install.packages("remotes")
if (!("remotes" %in% installed.packages())) {
install.packages("remotes")
}
remotes::install_github("jemus42/tRakt")
library("tRakt")
```
@ -71,8 +76,8 @@ trakt.seasons.summary(show_info$trakt, extended = "full")
#> # A tibble: 2 x 12
#> season rating votes episode_count aired_episodes title overview
#> <int> <dbl> <int> <int> <int> <chr> <chr>
#> 1 1 8.70 166 6 6 Seas… When a …
#> 2 2 8.27 120 6 6 Seas… It has …
#> 1 1 8.66 170 6 6 Seas… When a …
#> 2 2 8.22 122 6 6 Seas… It has …
#> # … with 5 more variables: first_aired <dttm>, network <chr>, trakt <chr>,
#> # tvdb <chr>, tmdb <chr>
@ -86,13 +91,13 @@ trakt.seasons.season(show_info$trakt, seasons = c(1, 2), extended = "full") %>%
#> $ title <chr> "Episode 1", "Episode 2", "Episode 3", "E…
#> $ episode_abs <int> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
#> $ overview <chr> "When five strangers from an online comic…
#> $ rating <dbl> 8.25000, 8.12985, 8.15416, 8.11274, 8.312
#> $ votes <int> 1024, 824, 746, 683, 652, 680, 683, 601, …
#> $ comment_count <int> 3, 0, 1, 2, 1, 1, 1, 1, 0, 1, 2, 1
#> $ rating <dbl> 8.24108, 8.12560, 8.14040, 8.10725, 8.306
#> $ votes <int> 1037, 836, 755, 690, 659, 687, 694, 610, …
#> $ comment_count <int> 3, 0, 1, 1, 1, 1, 1, 1, 0, 1, 2, 1
#> $ first_aired <dttm> 2013-01-15 21:00:00, 2013-01-22 21:00:00…
#> $ updated_at <dttm> 2019-05-16 15:33:47, 2019-05-16 15:27:26
#> $ updated_at <dttm> 2019-09-15 22:45:09, 2019-09-16 15:08:15
#> $ available_translations <list> [<"bs", "de", "el", "en", "es", "fr", "h…
#> $ runtime <int> 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 5
#> $ runtime <int> 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 6
#> $ trakt <chr> "1405053", "1405054", "1405055", "1405056…
#> $ tvdb <chr> "4471351", "4477746", "4477747", "4477748…
#> $ imdb <chr> "tt2618234", "tt2618232", "tt2618236", "t…


Loading…
Cancel
Save