Skip to content

Commit

Permalink
CRAN release
Browse files Browse the repository at this point in the history
  • Loading branch information
wahani committed Aug 25, 2023
1 parent 8b6a4cb commit 57d1e4e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 12 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.11.0
Date: 2023-06-10 10:26:56 UTC
SHA: 1cfcd097a4c7ef6e4ac8d6b4268ea7831c321256
Version: 0.12.0
Date: 2023-08-25 13:14:19 UTC
SHA: 8b6a4cb6cb1f9a373d3e5129b8b156b6898a311f
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: modules
Title: Self Contained Units of Source Code
Version: 0.11.1
Version: 0.12.0
Authors@R: person("Sebastian", "Warnholz", email = "[email protected]", role = c("aut", "cre"))
Description: Provides modules as an organizational unit for source code. Modules
enforce to be more rigorous when defining dependencies and have
Expand Down
11 changes: 5 additions & 6 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
## Test environments

* ubuntu (on travis-ci)
* github-action
* win-builder
* local ubuntu 22.04, R 4.3.0
* local PopOS! 22.04, R 4.3.1

## R CMD check results

* There were no ERRORs or WARNINGs or NOTEs

I have resolved the following note on https://cran.r-project.org/web/checks/check_results_modules.html:
There are no notes or issues reported on

https://cran.r-project.org/web/checks/check_results_modules.html:

Check: LazyData
Result: NOTE
'LazyData' is specified without a 'data' directory

## Downstream dependencies

Expand Down
33 changes: 31 additions & 2 deletions prepareRepo.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
library(modules)
devtools::install()
devtools::test()


devtools::build_vignettes()
knitr::knit("vignettes/modulesInR.Rmd", "README.md")

text <- c(
"[![Build Status](https://travis-ci.org/wahani/modules.png?branch=master)](https://travis-ci.org/wahani/modules)",
"[![Build Status](https://github.com/wahani/modules/actions/workflows/rcmdcheck.yml/badge.svg?branch=main)](https://github.com/wahani/modules/actions)",
"[![codecov.io](https://codecov.io/github/wahani/modules/coverage.svg?branch=master)](https://codecov.io/github/wahani/modules?branch=master)",
"[![CRAN](http://www.r-pkg.org/badges/version/modules)](https://cran.r-project.org/package=modules)",
"![Downloads](http://cranlogs.r-pkg.org/badges/modules)",
Expand All @@ -13,7 +18,7 @@ text <- c(
)

writeLines(text, "README.md")

https://m.tiktok.com/passport/email/unbind/index/?unbind_ticket=vRGFtnMfdskVwHyCwUPmXUEZEXdFZNtx&aid=1233&locale=en&language=en
## TODO

## - depend
Expand Down Expand Up @@ -62,3 +67,27 @@ system.time({
clusterMap(cl, identity, 1:100)
stopCluster(cl)
})


# #43



m <- modules::module({
export("==.foo" = equals)
equals <- function(left, right) {return(left == right)}
})

m$"==.foo"(1, 2)


m <- modules::module({
export(true = !FALSE)
})
m$true


library(modules)
modules::module({
"[" <- function(..., drop = FALSE) .Primitive("[")(..., drop = drop)
})

0 comments on commit 57d1e4e

Please sign in to comment.