Package 'Rcereal'

Title: "Cereal Headers for R and C++ Serialization"
Description: To facilitate using 'cereal' with R via 'cpp11' or 'Rcpp'. 'cereal' is a header-only C++11 serialization library. 'cereal' takes arbitrary data types and reversibly turns them into different representations, such as compact binary encodings, 'XML', or 'JSON'. 'cereal' was designed to be fast, light-weight, and easy to extend - it has no external dependencies and can be easily bundled with other code or used standalone. Please see <https://uscilab.github.io/cereal/> for more information.
Authors: Wush Wu [aut, cre] , Randolph Voorhies [ctb], Shane Grant [ctb], Stephen Wade [ctb]
Maintainer: Wush Wu <[email protected]>
License: BSD_2_clause + file LICENSE
Version: 1.3.2
Built: 2024-10-24 05:44:41 UTC
Source: https://github.com/wush978/rcereal

Help Index


Return the latest version of cereal on the GitHub.

Description

Uses the GitHub API to find the latest version of cereal.

Usage

last_version()

Details

Gets all the versions from GitHub via list_version() and selects the largest version number.

Value

package_version


List version(s) of cereal on GitHub.

Description

Use the GitHub API to query the versions of cereal.

Usage

list_version()

Details

The GitHub page of cereal is https://github.com/USCiLab/cereal, the tags are accessed via the GitHub API, from which a package_version object is coerced.

Value

package_version, a vector of available versions.


Update installed cereal headers

Description

Clone a different version of the cereal headers into R library.

Usage

update_version(version = last_version(), ...)

Arguments

version

character or package_version; the version to install, e.g. '1.3.2' or v1.3.2.

...

additional arguments passed to system.file(), e.g. lib.loc for the location of the library that Rcereal is installed in.

Details

This over-writes the installed cereal headers inside an R library. The default location for the files is found via system.file(). The library location can be specified by passing an argument lib.loc. See system.file() for further details.