Skip to content

Commit

Permalink
Patch/0.2.5 (#43)
Browse files Browse the repository at this point in the history
* modern GH-Actions check

* CRAN patch

stringi::stri_unescape_unicode fails to escape unicode on some architectures

* librdf0-dev on linux

* sudo needed
can we run on Linux-devel only?

* all linux then

* rdy

* alternate matrix setup
  • Loading branch information
cboettig committed Feb 7, 2022
1 parent 63b03b9 commit 60e4473
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 18 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ cache
.*\.db$
^precompute-storage-vignette\.sh$
^CRAN-SUBMISSION$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
46 changes: 46 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: macOS-latest, r: 'devel'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v1

- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: rcmdcheck

- uses: r-lib/actions/check-r-package@v1
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rdflib
Title: Tools to Manipulate and Query Semantic Data
Version: 0.2.4
Version: 0.2.5
Authors@R: c(person("Carl", "Boettiger",
email = "cboettig@gmail.com",
role = c("aut", "cre", "cph"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# rdflib 0.2.5

* bugfix UTF-8

# rdflib 0.2.4

* bugfix in write_nquads() for rdf method
Expand Down
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ output: github_document

# rdflib <img src="man/figures/logo.svg" align="right" alt="" width="120" />

<!-- badges: start -->
[![R-CMD-check](https://github.com/ropensci/rdflib/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/rdflib/actions)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/)
[![Travis-CI Build Status](https://travis-ci.org/ropensci/rdflib.svg?branch=master)](https://travis-ci.org/ropensci/rdflib)
[![Build status](https://ci.appveyor.com/api/projects/status/n81e9wsh5bh0xrm6?svg=true)](https://ci.appveyor.com/project/cboettig/rdflib)
[![Coverage Status](https://img.shields.io/codecov/c/github/ropensci/rdflib/master.svg)](https://codecov.io/github/ropensci/rdflib?branch=master)
[![CircleCI](https://app.circleci.com/pipelines/github/ropensci/rdflib.svg?style=svg)](https://app.circleci.com/pipelines/github/ropensci/rdflib "Docker tests")
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rdflib)](https://cran.r-project.org/package=rdflib)
[![](http://badges.ropensci.org/169_status.svg)](https://github.com/ropensci/software-review/issues/169)
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/rdflib)](https://CRAN.R-project.org/package=rdflib)
[![DOI](https://zenodo.org/badge/100521776.svg)](https://zenodo.org/badge/latestdoi/100521776)
<!-- badges: end -->

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

Expand Down
5 changes: 0 additions & 5 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ Dear CRAN maintainers,

This release provides a minor update as described in the package NEWS.md

## Test environments

* local OS X install, R 3.6.2
* ubuntu 16.04 (on travis-ci), R 3.6.2
* win-builder (devel and release)

## R CMD check results

Expand Down
21 changes: 12 additions & 9 deletions tests/testthat/test-rdf_add.R
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
testthat::context("RDF Add")
context("RDF Add")

testthat::test_that("we can print.rdf UTF-8", {
test_that("we can print.rdf UTF-8", {
# stringi::stri_unescape_unicode fails on some architectures
skip_on_cran()
skip_on_os("windows")
r <- rdf()
rdf_add(r,
subject="",
predicate="http://schema.org/name",
object="Maëlle Salmon")

testthat::expect_output(print(r), "Maëlle")
expect_output(print(r), "Maëlle")
rdf_free(r)
})



testthat::test_that("we can initialize add triples to rdf graph", {
test_that("we can initialize add triples to rdf graph", {
rdf <- rdf()
rdf <- rdf_add(rdf,
subject="http://www.dajobe.org/",
predicate="http://schema.org/dateCreated",
object=as.Date("2015-01-01"))
testthat::expect_is(rdf, "rdf")
expect_is(rdf, "rdf")
rdf_free(rdf)

})


testthat::test_that("we can initialize add triples to rdf graph", {
test_that("we can initialize add triples to rdf graph", {
rdf <- rdf()
rdf <- rdf_add(rdf,
subject=NA,
predicate="http://schema.org/dateCreated",
object=NA)
testthat::expect_is(rdf, "rdf")
expect_is(rdf, "rdf")
rdf_free(rdf)

})

testthat::test_that("other rdf_add examples work",{
test_that("other rdf_add examples work",{

rdf <- rdf()
rdf_add(rdf,
Expand Down Expand Up @@ -71,6 +74,6 @@ testthat::test_that("other rdf_add examples work",{
objectType = "literal")


testthat::expect_is(rdf, "rdf")
expect_is(rdf, "rdf")
rdf_free(rdf)
})

0 comments on commit 60e4473

Please sign in to comment.