boB Rudis
4 years ago
15 changed files with 1145 additions and 1147 deletions
@ -1,20 +1,13 @@ |
|||
## Test environments |
|||
* local OS X install, R 3.3.1 |
|||
* ubuntu 12.04 (on travis-ci), R 3.3.1 |
|||
* local OS X install, R 4.0.0 |
|||
* ubuntu 14.04 (on travis-ci), R 4.0.0 |
|||
* win-builder (devel and release) |
|||
|
|||
## R CMD check results |
|||
|
|||
0 errors | 0 warnings | 1 note |
|||
0 errors | 0 warnings | 0 note |
|||
|
|||
* This is a new release. |
|||
|
|||
## Reverse dependencies |
|||
|
|||
This is a new release, so there are no reverse dependencies. |
|||
|
|||
--- |
|||
|
|||
win-builder gave a memory error but every other system I've |
|||
run this on did the pkg load & tests just fine. It does |
|||
generate a large data structure using V8 in the pkg |
|||
environment but that's necessary for the actual parsing job. |
|||
* Updated core parser code |
|||
* Added new user agent database |
|||
* Addressed issues re:Kurt's "stringsAsFactors" guidance email. |
|||
* Switched testing framework |
|||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,11 @@ |
|||
library(uaparserjs) |
|||
|
|||
# Placeholder with simple test |
|||
res <- ua_parse(paste0("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, ", |
|||
"like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 ", |
|||
"Chrome/15.0.874.106 Safari/535.2", collapse="")) |
|||
|
|||
expect_true(inherits(res, "data.frame")) |
|||
expect_equal(res$ua.patch, "874") |
|||
expect_equal(res$os.family, "Ubuntu") |
|||
|
@ -1,2 +0,0 @@ |
|||
library(testthat) |
|||
test_check("uaparserjs") |
@ -1,12 +0,0 @@ |
|||
context("basic functionality") |
|||
test_that("we can do something", { |
|||
|
|||
res <- ua_parse(paste0("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, ", |
|||
"like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 ", |
|||
"Chrome/15.0.874.106 Safari/535.2", collapse="")) |
|||
|
|||
expect_that(res, is_a("data.frame")) |
|||
expect_that(res$ua.patch, equals("874")) |
|||
expect_that(res$os.family, equals("Ubuntu")) |
|||
|
|||
}) |
@ -0,0 +1,5 @@ |
|||
|
|||
if ( requireNamespace("tinytest", quietly=TRUE) ){ |
|||
tinytest::test_package("uaparserjs") |
|||
} |
|||
|
Loading…
Reference in new issue