Skip to content

Commit

Permalink
getting ready for cran submission
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Jan 22, 2020
1 parent dcf2e73 commit 2dd7fe8
Show file tree
Hide file tree
Showing 59 changed files with 759 additions and 763 deletions.
244 changes: 107 additions & 137 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,151 +1,121 @@
# documentation at https://docs.travis-ci.com/user/languages/r

language: r
dist: trusty
cache: packages
latex: true
warnings_are_errors: true
warnings_are_errors: TRUE

repos:
CRAN: https://cloud.r-project.org
ropensci: http://packages.ropensci.org
cache:
- packages
- ccache

env:
global:
- R_MAX_NUM_DLLS=999
- _R_CHECK_FORCE_SUGGESTS_=true
- _R_CHECK_CRAN_INCOMING_=true
- MAKEFLAGS="-j 2"
jobs:
include:
- r: devel
r_binary_packages:
- magrittr
- curl
- jsonlite
- rstan
- Rcpp
- RcppEigen
- openssl
- utf8
- gss
- haven
- minqa
- mvtnorm
- nloptr
- SparseM
- httpuv
- markdown
- sem
- readxl
- openxlsx
- pander
- lme4
- psych
- git2r
- rlang
- bindrcpp
- tidyr
- dplyr
- rstantools
- bridgesampling
- BH
- stringi
- metaBMA
r_packages:
- coin
- sjstats
- WRS2
- coda
- remotes
- knitr
- rmarkdown
r_github_packages:
- jimhester/lintr
- r-lib/covr
- r: release
r_binary_packages:
- magrittr
- curl
- jsonlite
- rstan
- Rcpp
- RcppEigen
- openssl
- utf8
- gss
- haven
- minqa
- mvtnorm
- nloptr
- SparseM
- httpuv
- markdown
- sem
- readxl
- openxlsx
- pander
- lme4
- psych
- git2r
- rlang
- bindrcpp
- tidyr
- dplyr
- rstantools
- bridgesampling
- BH
- stringi
- metaBMA
r_packages:
- coin
- sjstats
- WRS2
- coda
- remotes
- knitr
- rmarkdown
r_github_packages:
- jimhester/lintr
- r-lib/covr

#r_check_args: "--run-dontrun"
addons:
apt:
packages:
- libudunits2-dev
- libgdal-dev
- libproj-dev

before_install:
- mkdir -p ~/.R
- echo "CXX14FLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -Wno-macro-redefined" >> ~/.R/Makevars
- echo "CXX14=g++ -std=c++1y -fPIC" >> ~/.R/Makevars

notifications:
email:
on_success: change
on_failure: change

jobs:
include:
- os: linux
dist: trusty
r: release
r_binary_packages:
- magrittr
- curl
- jsonlite
- rstan
- Rcpp
- RcppEigen
- openssl
- utf8
- gss
- haven
- minqa
- mvtnorm
- nloptr
- SparseM
- httpuv
- markdown
- sem
- readxl
- openxlsx
- pander
- lme4
- psych
- git2r
- data.table
- LaplacesDemon
- logspline
r_packages:
- rlang
- bindrcpp
- tidyr
- dplyr
- coin
- sjstats
- WRS2
- coda
- rstantools
- bridgesampling
- BH
- remotes
- knitr
- rmarkdown
- stringi
r_github_packages:
- jimhester/lintr
- r-lib/covr
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: linux
dist: trusty
r: devel
r_binary_packages:
- magrittr
- curl
- jsonlite
- rstan
- Rcpp
- RcppEigen
- openssl
- utf8
- gss
- haven
- minqa
- mvtnorm
- nloptr
- SparseM
- httpuv
- markdown
- sem
- readxl
- openxlsx
- pander
- lme4
- psych
- git2r
- data.table
- LaplacesDemon
- logspline
r_packages:
- rlang
- bindrcpp
- tidyr
- dplyr
- coin
- sjstats
- WRS2
- coda
- rstantools
- bridgesampling
- BH
- remotes
- stringi
- knitr
- rmarkdown
r_github_packages:
- jimhester/lintr
- r-lib/covr
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"

before_install:
- mkdir -p ~/.R/
- echo "CXX14 = g++-7 -fPIC" >> ~/.R/Makevars
- echo "CXX14FLAGS = -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -Wno-attributes -O3" >> ~/.R/Makevars

after_success:
- Rscript -e 'covr::codecov()'
- Rscript -e 'covr::coveralls()'
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: statsExpressions
Title: Expressions with Statistical Details
Version: 0.2.0.9000
Version: 0.2.1
Authors@R:
c(person(given = "Indrajeet",
family = "Patil",
Expand Down Expand Up @@ -33,7 +33,7 @@ Imports:
crayon (>= 1.3.4),
dplyr (>= 0.8.3),
ez (>= 4.4-0),
groupedstats (>= 0.1.0),
groupedstats (>= 0.1.1),
metaBMA (>= 0.6.2),
metafor (>= 2.1-0),
metaplus (>= 0.7-11),
Expand Down
10 changes: 5 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ knitr::opts_chunk$set(

Package | Status | Usage | GitHub | References
----------------- | ----------------- | ----------------- | ----------------- | -----------------
[![CRAN_Release_Badge](http://www.r-pkg.org/badges/version-ago/statsExpressions)](https://CRAN.R-project.org/package=statsExpressions) | [![Build Status](https://travis-ci.org/IndrajeetPatil/statsExpressions.svg?branch=master)](https://travis-ci.org/IndrajeetPatil/statsExpressions) | [![Daily downloads badge](https://cranlogs.r-pkg.org/badges/last-day/statsExpressions?color=blue)](https://CRAN.R-project.org/package=statsExpressions) | [![GitHub version](https://img.shields.io/badge/GitHub-0.2.0.9000-orange.svg?style=flat-square)](https://github.com/IndrajeetPatil/statsExpressions/) | [![Website](https://img.shields.io/badge/website-statsExpressions-orange.svg?colorB=E91E63)](https://indrajeetpatil.github.io/statsExpressions/)
[![CRAN_Release_Badge](http://www.r-pkg.org/badges/version-ago/statsExpressions)](https://CRAN.R-project.org/package=statsExpressions) | [![Build Status](https://travis-ci.org/IndrajeetPatil/statsExpressions.svg?branch=master)](https://travis-ci.org/IndrajeetPatil/statsExpressions) | [![Daily downloads badge](https://cranlogs.r-pkg.org/badges/last-day/statsExpressions?color=blue)](https://CRAN.R-project.org/package=statsExpressions) | [![GitHub version](https://img.shields.io/badge/GitHub-0.2.1.9000-orange.svg?style=flat-square)](https://github.com/IndrajeetPatil/statsExpressions/) | [![Website](https://img.shields.io/badge/website-statsExpressions-orange.svg?colorB=E91E63)](https://indrajeetpatil.github.io/statsExpressions/)
[![CRAN Checks](https://cranchecks.info/badges/summary/statsExpressions)](https://cran.r-project.org/web/checks/check_results_statsExpressions.html) | [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/IndrajeetPatil/statsExpressions?branch=master&svg=true)](https://ci.appveyor.com/project/IndrajeetPatil/statsExpressions) | [![Weekly downloads badge](https://cranlogs.r-pkg.org/badges/last-week/statsExpressions?color=blue)](https://CRAN.R-project.org/package=statsExpressions) | [![Forks](https://img.shields.io/badge/forks-`r itdepends:::get_github_info("statsExpressions")$forks[[1]]`-blue.svg)](https://github.com/IndrajeetPatil/statsExpressions/) | [![Rdoc](https://www.rdocumentation.org/badges/version/statsExpressions)](https://www.rdocumentation.org/packages/statsExpressions)
[![minimal R version](https://img.shields.io/badge/R%3E%3D-3.5.0-6666ff.svg)](https://cran.r-project.org/) | [![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/) | [![Monthly downloads badge](https://cranlogs.r-pkg.org/badges/last-month/statsExpressions?color=blue)](https://CRAN.R-project.org/package=statsExpressions) | [![Github Issues](https://img.shields.io/badge/issues-`r itdepends:::get_github_info("statsExpressions")$open_issues[[1]]`-red.svg)](https://github.com/IndrajeetPatil/statsExpressions/issues) | [![vignettes](https://img.shields.io/badge/vignettes-0.2.0-orange.svg?colorB=FF5722)](https://CRAN.R-project.org/package=statsExpressions/vignettes/)
[![minimal R version](https://img.shields.io/badge/R%3E%3D-3.5.0-6666ff.svg)](https://cran.r-project.org/) | [![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/) | [![Monthly downloads badge](https://cranlogs.r-pkg.org/badges/last-month/statsExpressions?color=blue)](https://CRAN.R-project.org/package=statsExpressions) | [![Github Issues](https://img.shields.io/badge/issues-`r itdepends:::get_github_info("statsExpressions")$open_issues[[1]]`-red.svg)](https://github.com/IndrajeetPatil/statsExpressions/issues) | [![vignettes](https://img.shields.io/badge/vignettes-0.2.1-orange.svg?colorB=FF5722)](https://CRAN.R-project.org/package=statsExpressions/vignettes/)
[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/IndrajeetPatil/statsExpressions.svg)](https://github.com/IndrajeetPatil/statsExpressions) | [![Coverage Status](https://coveralls.io/repos/github/IndrajeetPatil/statsExpressions/badge.svg?branch=master)](https://coveralls.io/github/IndrajeetPatil/statsExpressions?branch=master) | [![Total downloads badge](https://cranlogs.r-pkg.org/badges/grand-total/statsExpressions?color=blue)](https://CRAN.R-project.org/package=statsExpressions) | [![Github Stars](https://img.shields.io/github/stars/IndrajeetPatil/statsExpressions.svg?style=social&label=Github)](https://github.com/IndrajeetPatil/statsExpressions) | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2074621.svg)](https://doi.org/10.5281/zenodo.3386122)
[![Licence](https://img.shields.io/badge/licence-GPL--3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html) | [![Codecov test coverage](https://codecov.io/gh/IndrajeetPatil/statsExpressions/branch/master/graph/badge.svg)](https://codecov.io/gh/IndrajeetPatil/statsExpressions?branch=master) | [![HitCount](http://hits.dwyl.io/IndrajeetPatil/statsExpressions.svg)](http://hits.dwyl.io/IndrajeetPatil/statsExpressions) | [![Last-changedate](https://img.shields.io/badge/last%20change-`r gsub('-', '--', Sys.Date())`-yellowgreen.svg)](https://github.com/IndrajeetPatil/statsExpressions/commits/master) | [![GitHub last commit](https://img.shields.io/github/last-commit/IndrajeetPatil/statsExpressions.svg)](https://github.com/IndrajeetPatil/statsExpressions/commits/master)
[![status](https://tinyverse.netlify.com/badge/statsExpressions)](https://CRAN.R-project.org/package=statsExpressions) | [![Covrpage Summary](https://img.shields.io/badge/covrpage-Last_Build_2020_01_15-yellowgreen.svg)](https://github.com/IndrajeetPatil/statsExpressions/blob/master/tests/README.md) | [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/statsExpressions/community) | [![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) | [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/IndrajeetPatil/statsExpressions/issues)
[![status](https://tinyverse.netlify.com/badge/statsExpressions)](https://CRAN.R-project.org/package=statsExpressions) | [![Covrpage Summary](https://img.shields.io/badge/covrpage-Last_Build_2020_01_22-yellowgreen.svg)](https://github.com/IndrajeetPatil/statsExpressions/blob/master/tests/README.md) | [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/statsExpressions/community) | [![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) | [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/IndrajeetPatil/statsExpressions/issues)

# Introduction

Expand All @@ -43,14 +43,14 @@ create these expressions.

# Installation

To get the latest, stable `CRAN` release (`0.2.0`):
To get the latest, stable `CRAN` release (`0.2.1`):

```{r installationCRAN, eval = FALSE}
install.packages(pkgs = "statsExpressions")
```

You can get the **development** version of the package from `GitHub`
(`0.2.0.9000`). To see what new changes (and bug fixes) have been made to the
(`0.2.1.9000`). To see what new changes (and bug fixes) have been made to the
package since the last release on `CRAN`, you can check the detailed log of
changes here: <https://indrajeetpatil.github.io/statsExpressions/news/index.html>

Expand Down
Loading

2 comments on commit 2dd7fe8

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/helpers_contingency_tabs_expressions.R:86:1: style: functions should have cyclomatic complexity of less than 15, this has 16.

expr_contingency_tab <- function(data,
^

R/helpers_effsize_ci.R:98:1: style: functions should have cyclomatic complexity of less than 15, this has 20.

effsize_t_parametric <- function(formula = NULL,
^

R/helpers_effsize_ci.R:440:3: warning: local variable ‘sample_size’ assigned but may not be used

sample_size <- nrow(data_wide)
  ^~~~~~~~~~~

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/helpers_contingency_tabs_expressions.R:86:1: style: functions should have cyclomatic complexity of less than 15, this has 16.

expr_contingency_tab <- function(data,
^

R/helpers_effsize_ci.R:98:1: style: functions should have cyclomatic complexity of less than 15, this has 20.

effsize_t_parametric <- function(formula = NULL,
^

R/helpers_effsize_ci.R:440:3: warning: local variable ‘sample_size’ assigned but may not be used

sample_size <- nrow(data_wide)
  ^~~~~~~~~~~

Please sign in to comment.