Skip to content

Commit 6ac1924

Browse files
authored
Merge pull request t-kalinowski#48 from t-kalinowski/cran/0.2.0
CRAN Release v0.2.0
2 parents cb2c4b5 + 566bccb commit 6ac1924

7 files changed

Lines changed: 19 additions & 12 deletions

File tree

.Rbuildignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
^README\.Rmd$
55
^LICENSE\.md$
66
^roadmap.md$
7-
^scratch$
7+
^scratch.*$
88
^\.vscode$
99
^cran-comments\.md$
1010
^[\.]?air\.toml$
1111
^\.github$
12+
^scripts$
13+
^AGENTS.md$
14+
^CRAN-SUBMISSION$

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: quickr
22
Title: Compiler for R
3-
Version: 0.1.0.9000
3+
Version: 0.2.0.9000
44
Authors@R: c(
55
person("Tomasz", "Kalinowski", , "tomasz@posit.co", role = c("aut", "cre")),
66
person("Posit Software, PBC", role = c("cph", "fnd"),

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# quickr (development version)
22

3+
# quickr 0.2.0
4+
35
- Internal utility `r2f()` print method now shows the generated `c_bridge`
46
for translated subroutines.
57

R/compile-package.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ compile_package <- function(path = ".") {
2525
}
2626
pkgname <- as.character(pkgname)
2727

28-
# collect all `quick()` calls in the package
29-
collector$activate(paste0(pkgname, ":quick_funcs"))
30-
3128
# TODO: need to unset various R_* env vars, or just
3229
# take a dep on callr
30+
# TODO: prompt to install pkgload if not available?
3331
system2(
3432
file.path(R.home("bin"), "R"),
3533
c("-q", "-e", shQuote("pkgload::load_all()"))

R/quick.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,15 @@
106106
#' @returns A quicker R function.
107107
#' @export
108108
#' @examples
109+
#' \donttest{
109110
#' add_ab <- quick(function(a, b) {
110111
#' declare(type(a = double(n)),
111112
#' type(b = double(n)))
112-
#' out <- a + b
113-
#' out
113+
#' a + b
114114
#' })
115115
#' add_ab(1, 2)
116+
#' add_ab(c(1, 2, 3), c(4, 5, 6))
117+
#' }
116118
quick <- function(fun, name = NULL) {
117119
if (is.null(name)) {
118120
name <- if (is.symbol(substitute(fun))) {

cran-comments.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## R CMD check results
1+
Update with bugfixes and new features. See NEWS.md for details.
22

3-
0 errors | 0 warnings | 1 note
3+
## R CMD check results
44

5-
* This is a new release.
5+
0 errors | 0 warnings | 0 notes

man/quick.Rd

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)