~hrbrmstr/vershist

aadbcc0ed25089d617bba91f8321b0f17a2f7207 — hrbrmstr 3 years ago 6bebf5e
fixed ios parser
8 files changed, 18 insertions(+), 10 deletions(-)

M DESCRIPTION
M R/ios.R
M README.Rmd
D README_cache/gfm/apache_64e645fe0c4206c6b0aac44aeaeabcb0.RData
D README_cache/gfm/apache_64e645fe0c4206c6b0aac44aeaeabcb0.rdx
A README_cache/gfm/apache_bcea6c038a05f961e12f724d55c9eeb0.RData
R README_cache/gfm/{apache_64e645fe0c4206c6b0aac44aeaeabcb0.rdb => apache_bcea6c038a05f961e12f724d55c9eeb0.rdb}
A README_cache/gfm/apache_bcea6c038a05f961e12f724d55c9eeb0.rdx
M DESCRIPTION => DESCRIPTION +2 -2
@@ 18,14 18,14 @@ License: MIT + file LICENSE
Suggests:
    testthat,
    covr,
    tibble (>= 2.0.1)
    tibble
Depends:
    R (>= 3.2.0)
Imports:
    purrr,
    rvest,
    readr,
    dplyr (>= 0.7.8),
    dplyr,
    stringi,
    semver,
    lubridate,

M R/ios.R => R/ios.R +3 -2
@@ 16,7 16,7 @@ apple_ios_version_history <- function() {

  vers_nodes <- rvest::html_nodes(pg, xpath=".//th[contains(@id, '.') or contains(., '.')]")

  dplyr::data_frame(
  dplyr::tibble(
    vers = rvest::html_text(vers_nodes),
    rls_date = purrr::map_chr(
      vers_nodes,


@@ 40,13 40,14 @@ apple_ios_version_history <- function() {
  c_d <- stri_extract_all_regex(more_complex$rls_date, "[[:alpha:]]{2,}[[:space:]]+[[:digit:]]{1,2},[[:space:]]+[[:digit:]]{4}")

  purrr::map2_df(c_v, c_d, ~{
    dplyr::data_frame(
    dplyr::tibble(
      vers = .x,
      rls_date = .y
    )
  }) -> more_complex

  dplyr::bind_rows(simple, more_complex) %>%
    dplyr::mutate(vers = stri_trim_both(vers)) %>%
    dplyr::mutate(rls_date = lubridate::mdy(rls_date)) %>%
    dplyr::filter(!stri_detect_fixed(vers, "Beta")) %>%
    dplyr::mutate(

M README.Rmd => README.Rmd +13 -6
@@ 3,7 3,14 @@ output: rmarkdown::github_document
editor_options: 
  chunk_output_type: console
---

```{r include=FALSE}
knitr::opts_chunk$set(
  message = FALSE,
  warning = FALSE,
  fig.retina = 2
)
options(width=120)
```
# vershist

Collect Version Histories For Vendor Products


@@ 44,16 51,16 @@ Utility:
## Installation

```{r eval=FALSE}
devtools::install_git("https://git.sr.ht/~hrbrmstr/vershist")
# OR
devtools::install_gitlab("hrbrmstr/vershist")
# OR
devtools::install_github("hrbrmstr/vershist")
```

```{r message=FALSE, warning=FALSE, error=FALSE, include=FALSE}
options(width=120)
```

## Usage

```{r message=FALSE, warning=FALSE, error=FALSE}
```{r}
library(vershist)

# current verison

D README_cache/gfm/apache_64e645fe0c4206c6b0aac44aeaeabcb0.RData => README_cache/gfm/apache_64e645fe0c4206c6b0aac44aeaeabcb0.RData +0 -0
D README_cache/gfm/apache_64e645fe0c4206c6b0aac44aeaeabcb0.rdx => README_cache/gfm/apache_64e645fe0c4206c6b0aac44aeaeabcb0.rdx +0 -0
A README_cache/gfm/apache_bcea6c038a05f961e12f724d55c9eeb0.RData => README_cache/gfm/apache_bcea6c038a05f961e12f724d55c9eeb0.RData +0 -0
R README_cache/gfm/apache_64e645fe0c4206c6b0aac44aeaeabcb0.rdb => README_cache/gfm/apache_bcea6c038a05f961e12f724d55c9eeb0.rdb +0 -0
A README_cache/gfm/apache_bcea6c038a05f961e12f724d55c9eeb0.rdx => README_cache/gfm/apache_bcea6c038a05f961e12f724d55c9eeb0.rdx +0 -0