Skip to content

Commit

Permalink
prepare for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
daranzolin committed Apr 22, 2024
1 parent 60dcdec commit 757c94d
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 7 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
^README\.Rmd$
^CODE_OF_CONDUCT\.md$
^\.github$
^cran-comments\.md$
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Type: Package
Title: Targets extension for SQL queries
Version: 0.0.1
Authors@R: c(
person("David", "Ranzolin", email = "[email protected]", role=c("aut", "cre", "ctb"))
person("David", "Ranzolin", email = "[email protected]", role=c("aut", "cre", "ctb", "cph"))
)
Maintainer: David Ranzolin <[email protected]>
Description: Provides an extension for SQL queries within
targets pipelines.
Description: Provides an extension for SQL queries as separate file
within targets pipelines.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# sqltargets 0.0.1

* Added a `NEWS.md` file to track changes to the package.
* Added an initial batch of tests.
2 changes: 0 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# From https://github.com/njtierney/geotargets/blob/8ad4e66b2e2f2373a6237e5b4d8092a7711e6da3/R/utils.R#L8-L15
check_pkg_installed <- function(pkg, call = rlang::caller_env()) {
if (!requireNamespace(pkg, quietly = TRUE)) {
cli::cli_abort(
Expand All @@ -8,7 +7,6 @@ check_pkg_installed <- function(pkg, call = rlang::caller_env()) {
}
}

# From https://github.com/ropensci/tarchetypes/blob/9de10e666d114c14d48fc8af0311b7588d16585d/R/utils_language
call_list <- function(args) {
call_function("list", args)
}
Expand Down
8 changes: 7 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ SQL queries (as separate files) occupy an awkward spot within R pipelines. The g

## Installation

You can install the development version of sqltargets like so:
You can install sqltargets from CRAN with:

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

You can install the development version of sqltargets with:

``` r
remotes::install_github("daranzolin/sqltargets)
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ project.](https://github.com/ropensci/targets)

## Installation

You can install the development version of sqltargets like so:
You can install sqltargets from CRAN with:

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

You can install the development version of sqltargets with:

``` r
remotes::install_github("daranzolin/sqltargets)
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 | 0 notes

* This is a new release.

0 comments on commit 757c94d

Please sign in to comment.