Skip to content

Commit

Permalink
prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
parmsam committed May 1, 2024
1 parent ae79e7a commit 18df36d
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 29 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
^docs$
^pkgdown$
^vignettes/articles$
^cran-comments\.md$
14 changes: 5 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
Package: lzstring
Type: Package
Title: An R wrapper of lzstring C++ library
Title: Wrapper for 'lz-string' C++ Library
Version: 0.1.0
Author: Sam Parmar
Maintainer: Sam Parmar <[email protected]>
Description: R interface to the lz-string C++ library, enabling LZ-based
compression and decompression of strings directly within R. Useful for
reducing the memory footprint of large strings or transmitting
compressed data.
Description: Provide access to the 'lz-string' C++ library for LZ-based
compression and decompression of strings.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Expand All @@ -16,13 +12,13 @@ LinkingTo:
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
URL: https://parmsam.github.io/lzstring-r/, https://github.com/parmsam/lzstring-r
Authors@R: c(
person(
given = "Sam",
family = "Parmar",
role = c("aut", "cre")
role = c("aut", "cre"),
email = "[email protected]"
),
person(
Expand Down
14 changes: 4 additions & 10 deletions R/lzstringr-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ safe_decompress <- function(string, f) {
#' @return A character string representing the compressed input string in Base64 format.
#' @export
#' @examples
#' \dontrun{
#' compressToBase64("Hello, world!")
#' }
compressToBase64 <- function(string) {
stopifnot(
"`string` must be a character." = is.character(string),
Expand All @@ -101,9 +99,8 @@ compressToBase64 <- function(string) {
#' @return A character string representing the decompressed input string.
#' @export
#' @examples
#' \dontrun{
#' decompressFromBase64(compressed_string)
#' }
#' x <- compressToBase64("Hello, world!")
#' decompressFromBase64(x)
decompressFromBase64 <- function(string) {
stopifnot(
"`string` must be a character." = is.character(string),
Expand All @@ -120,9 +117,7 @@ decompressFromBase64 <- function(string) {
#' @return A character string representing the compressed input string in Encoded URI Component format.
#' @export
#' @examples
#' \dontrun{
#' compressToEncodedURIComponent("Hello, world!")
#' }
compressToEncodedURIComponent <- function(string) {
stopifnot(
"`string` must be a character." = is.character(string),
Expand All @@ -139,9 +134,8 @@ compressToEncodedURIComponent <- function(string) {
#' @return A character string representing the decompressed input string.
#' @export
#' @examples
#' \dontrun{
#' decompressFromEncodedURIComponent(compressed_string)
#' }
#' x <- compressToEncodedURIComponent("Hello, world!")
#' decompressFromEncodedURIComponent(x)
decompressFromEncodedURIComponent <- function(string) {
stopifnot(
"`string` must be a character." = is.character(string),
Expand Down
6 changes: 6 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ The goal of lzstring-r is to provide an R wrapper for the [lzstring C++ library]

## Installation

You can install the released version of lzstringr from CRAN with:

``` r
install.packages("lzstringr")
```

You can install the development version of lzstringr from [GitHub](https://github.com/) with:

``` r
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ lzstring in JavaScript—peek at his work over

## Installation

You can install the released version of lzstringr from CRAN with:

``` r
install.packages("lzstringr")
```

You can install the development version of lzstringr from
[GitHub](https://github.com/) with:

Expand Down
5 changes: 5 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## R CMD check results

0 errors | 0 warnings | 1 note

* This is a new release.
2 changes: 0 additions & 2 deletions man/compressToBase64.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/compressToEncodedURIComponent.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions man/decompressFromBase64.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions man/decompressFromEncodedURIComponent.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 18df36d

Please sign in to comment.