Skip to content

Commit

Permalink
Merge pull request #92 from MicheleNuijten/cran-update-1.4.0
Browse files Browse the repository at this point in the history
Cran update 1.4.0 --> 1.5.0
  • Loading branch information
MicheleNuijten authored May 14, 2024
2 parents c46233d + 1c8f55f commit 6604b84
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 67 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ sandoval*
todd*
zhang*
^CRAN-SUBMISSION$
^revdep$
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
.RData
statcheck.Rproj

# files to check for reverse dependencies
# automatically created with the revdep_check from usethis
# these files are not necessary to share on git (and seem to create some issues
# when syncing, so ignoring here)
^revdep$

# test materials
# can't share because of copyright restrictions
aloe*
Expand Down
86 changes: 46 additions & 40 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,52 +1,58 @@
Package: statcheck
Title: Extract Statistics from Articles and Recompute P-Values
Version: 1.4.1.9000
Date: 2023-04-13
Version: 1.5.0
Date: 2024-02-16
Authors@R: c(
person("Michele B.", "Nuijten", email = "m.b.nuijten@uvt.nl",
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-1468-8585")),
person("Sacha", "Epskamp", email = "mail@sachaepskamp.com", role = "aut",
comment = c(ORCID = "0000-0003-4884-8118")),
person("Willem", "Sleegers", role = "ctb",
comment = c(ORCID = "0000-0001-9058-3817")),
person("Michele B.", "Nuijten", , "m.b.nuijten@uvt.nl", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-1468-8585")),
person("Sacha", "Epskamp", , "mail@sachaepskamp.com", role = "aut",
comment = c(ORCID = "0000-0003-4884-8118")),
person("Willem", "Sleegers", role = "ctb",
comment = c(ORCID = "0000-0001-9058-3817")),
person("Edoardo", "Costantini", role = "ctb"),
person("Paul", "van der Laken", role = "ctb",
comment = c(ORCID = "0000-0002-0404-9114")),
person("Sean", "Rife", role = "ctb",
comment = c(ORCID = "0000-0002-6748-0841")),
person("John", "Sakaluk", role = "ctb",
comment = c(ORCID = "0000-0002-2515-9822")),
person("Chris", "Hartgerink", role = "ctb",
comment = c(ORCID = "0000-0003-1050-6809")),
person("Steve", "Haroz", role = "ctb",
comment = c(ORCID = "0000-0002-2725-9173"))
person("Paul", "van der Laken", role = "ctb",
comment = c(ORCID = "0000-0002-0404-9114")),
person("Sean", "Rife", role = "ctb",
comment = c(ORCID = "0000-0002-6748-0841")),
person("John", "Sakaluk", role = "ctb",
comment = c(ORCID = "0000-0002-2515-9822")),
person("Chris", "Hartgerink", role = "ctb",
comment = c(ORCID = "0000-0003-1050-6809")),
person("Steve", "Haroz", role = "ctb",
comment = c(ORCID = "0000-0002-2725-9173"))
)
Description: A "spellchecker" for statistics. It checks whether your p-values match their accompanying test statistic and
degrees of freedom. statcheck searches for null-hypothesis significance test
(NHST) in APA style (e.g., t(28) = 2.2, p < .05). It recalculates the p-value
using the reported test statistic and degrees of freedom. If the reported and
computed p-values don't match, statcheck will flag the result as an error. If
the reported p-value is statistically significant and the recomputed one is not,
or vice versa, the result will be flagged as a decision error.
You can use statcheck directly on a string of text, but you can also scan a PDF
or HTML file, or even a folder of PDF and/or HTML files.
Statcheck needs an external program to convert PDF to text: Xpdf. Instructions
on where and how to download this program, how to install statcheck, and more
details on what statcheck can and cannot do can be found in the online manual:
<https://rpubs.com/michelenuijten/statcheckmanual>.
You can find a point-and-click web interface to scan PDF or HTML or DOCX
articles on <http://statcheck.io>.
Depends: R (>= 2.14.2)
Description: A "spellchecker" for statistics. It checks whether your
p-values match their accompanying test statistic and degrees of
freedom. statcheck searches for null-hypothesis significance test
(NHST) in APA style (e.g., t(28) = 2.2, p < .05). It recalculates the
p-value using the reported test statistic and degrees of freedom. If
the reported and computed p-values don't match, statcheck will flag
the result as an error. If the reported p-value is statistically
significant and the recomputed one is not, or vice versa, the result
will be flagged as a decision error. You can use statcheck directly
on a string of text, but you can also scan a PDF or HTML file, or even
a folder of PDF and/or HTML files. Statcheck needs an external
program to convert PDF to text: Xpdf. Instructions on where and how to
download this program, how to install statcheck, and more details on
what statcheck can and cannot do can be found in the online manual:
<https://rpubs.com/michelenuijten/statcheckmanual>. You can find a
point-and-click web interface to scan PDF or HTML or DOCX articles on
<http://statcheck.io>.
License: GPL-3
Depends:
R (>= 2.14.2)
Imports:
tcltk,
plyr,
ggplot2,
ggplot2,
plyr,
rlang,
rmarkdown
rmarkdown,
stringi,
tcltk
Suggests:
testthat
LazyLoad: yes
ByteCompile: yes
Encoding: UTF-8
RoxygenNote: 7.2.3
LazyLoad: yes
RoxygenNote: 7.3.1
URL: https://github.com/MicheleNuijten/statcheck
BugReports: https://github.com/MicheleNuijten/statcheck/issues
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# statcheck 1.4.1
# statcheck 1.5.0

## Major changes

Expand All @@ -9,6 +9,7 @@
* Recognize "narrow non-breaking spaces" in HTML files. This was an issue in articles in the Journal of Experimental Social Psychology, especially in papers published in 2019

## Bug fixes
* Fixed some CRAN issues: explicitly import the package stringi and fix package alias.

# statcheck 1.4.0
<!---searched in commits on statcheck repo: `committer-date:2020-03-15..2020-04-30`
Expand Down
2 changes: 1 addition & 1 deletion R/statcheck-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
#' https://psyarxiv.com/tcxaj/.}

#' @keywords internal
#' @aliases {statcheck}-package
#' @aliases statcheck-package
"_PACKAGE"

#' @name statcheck
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

[![](https://www.r-pkg.org/badges/version/statcheck?color=green)](https://cran.r-project.org/package=statcheck)
[![](http://cranlogs.r-pkg.org/badges/grand-total/statcheck?color=green)](https://cran.r-project.org/package=statcheck)
[![](https://img.shields.io/badge/devel%20version-1.4.0-yellow.svg)](https://github.com/MicheleNuijten/statcheck)
[![](https://img.shields.io/badge/devel%20version-1.5.0-yellow.svg)](https://github.com/MicheleNuijten/statcheck)
<!-- badges: end -->

## What is statcheck?
Expand Down Expand Up @@ -39,10 +39,10 @@ result as an error.
3. **Research**: `statcheck` can be used to automatically extract
statistical test results from articles that can then be analyzed.
You can for instance investigate whether you can predict statistical
inconsistencies (see e.g., [Nuijten et al.,
2017](https://doi.org/10.1525/collabra.102)), or use it to analyze
p-value distributions (see e.g., [Hartgerink et al.,
2016](https://peerj.com/articles/1935/)).
inconsistencies (see e.g., Nuijten et al., 2017
<doi:10.1525/collabra.102>), or use it to analyze p-value
distributions (see e.g., Hartgerink et al., 2016
<doi:10.7717/peerj.1935>).

## How does statcheck work?

Expand All @@ -58,9 +58,9 @@ The algorithm behind `statcheck` consists of four basic steps:
degrees of freedom.
4. **Compare** the reported and recomputed *p*-value. If the reported
*p*-value does not match the computed one, the result is marked as
an *inconsistency* (`Error` in the output). If the reported
an *inconsistency* (`error` in the output). If the reported
*p*-value is significant and the computed is not, or vice versa, the
result is marked as a *gross inconsistency* (`DecisionError` in the
result is marked as a *gross inconsistency* (`decision_error` in the
output).

`statcheck` takes into account correct rounding of the test statistic,
Expand All @@ -72,5 +72,5 @@ and has the option to take into account one-tailed testing. See the
For detailed information about installing and using `statcheck`, see the
[manual on RPubs](http://rpubs.com/michelenuijten/statcheckmanual).

[statcheck.io](http://statcheck.io/) is a web-based interface for
Also see [statcheck.io](http://statcheck.io/), a web-based interface for
statcheck.
13 changes: 1 addition & 12 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
## R CMD check results
There were no ERRORs or WARNINGs.

There was one NOTE listing some possibly misspelled words in DESCRIPTION:
APA (26:13)
DOCX (37:71)
NHST (26:4)
Statcheck (33:3)
Xpdf (33:63)
statcheck (25:23, 28:34, 31:15, 34:61, 35:19)

These are all either names of software (statcheck; Xpdf) or common abbreviations
in the field of psychology that this package is intended for.
There were no ERRORs or WARNINGs or NOTEs.

## Downstream dependencies
There are currently no downstream dependencies for this package.
14 changes: 10 additions & 4 deletions man/statcheck-package.Rd

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

2 changes: 1 addition & 1 deletion man/trim.Rd

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

0 comments on commit 6604b84

Please sign in to comment.