You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](http://www.repostatus.org/#active)
`prereg` provides [R Markdown](http://rmarkdown.rstudio.com/) templates that facilitates authoring preregistrations of scientific studies in PDF format.
12
-
The templates are based on the [Center for Open Science Preregistration Challenge](https://cos.io/prereg/)template and the [AsPredicted.org](http://aspredicted.org) questions.
12
+
The templates are based on the [Center for Open Science Preregistration Challenge](https://cos.io/prereg/) and the [AsPredicted.org](http://aspredicted.org) questions.
13
13
They are, thus, particularly suited to draft preregistration documents for studies these programs but can also be used for internal preregistrations.
14
14
15
15
If you experience any problems or have suggestions for improvements, please [open an issue](https://github.com/crsh/prereg/issues).
@@ -57,9 +57,27 @@ The template file contains comments that provide further details on how to fill
57
57
If you want to use `prereg` without RStudio you can use the `rmarkdown::render` function to create preregistration documents:
58
58
59
59
```S
60
-
rmarkdown::render("mymanuscript.Rmd")
60
+
# Create new COS preregistration challenge R Markdown file
61
+
rmarkdown::draft(
62
+
"my_preregistration.Rmd"
63
+
, "cos_prereg"
64
+
, package = "prereg"
65
+
, create_dir = FALSE
66
+
, edit = FALSE
67
+
)
68
+
69
+
# Render document
70
+
rmarkdown::render("my_preregistration.Rmd")
61
71
```
62
72
63
73
## Acknowledgements
64
74
The templates for the preregistrations were developed by the [Center for Open Science](https://cos.io/prereg/) and [AsPredicted.org](http://aspredicted.org), respectively.
65
75
I thank both for their permission to use their material in this package.
Copy file name to clipboardExpand all lines: README.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
prereg: R Markdown Templates for Preregistrations of Scientific Studies
2
2
================
3
3
4
-
[](https://cran.r-project.org/web/packages/prereg/index.html)[](https://cran.r-project.org/web/packages/prereg/index.html)[](http://www.repostatus.org/#active)[](https://travis-ci.org/crsh/prereg)
4
+
[](https://cran.r-project.org/package=prereg)[](https://cran.r-project.org/package=prereg)[](http://www.repostatus.org/#active)[](https://travis-ci.org/crsh/prereg)
5
5
6
-
`prereg` provides [R Markdown](http://rmarkdown.rstudio.com/) templates that facilitates authoring preregistrations of scientific studies in PDF format. The templates are based on the [Center for Open Science Preregistration Challenge](https://cos.io/prereg/)template and the [AsPredicted.org](http://aspredicted.org) questions. They are, thus, particularly suited to draft preregistration documents for studies these programs but can also be used for internal preregistrations.
6
+
`prereg` provides [R Markdown](http://rmarkdown.rstudio.com/) templates that facilitates authoring preregistrations of scientific studies in PDF format. The templates are based on the [Center for Open Science Preregistration Challenge](https://cos.io/prereg/) and the [AsPredicted.org](http://aspredicted.org) questions. They are, thus, particularly suited to draft preregistration documents for studies these programs but can also be used for internal preregistrations.
7
7
8
8
If you experience any problems or have suggestions for improvements, please [open an issue](https://github.com/crsh/prereg/issues).
9
9
@@ -55,10 +55,25 @@ The template file contains comments that provide further details on how to fill
55
55
If you want to use `prereg` without RStudio you can use the `rmarkdown::render` function to create preregistration documents:
56
56
57
57
```s
58
-
rmarkdown::render("mymanuscript.Rmd")
58
+
# Create new COS preregistration challenge R Markdown file
59
+
rmarkdown::draft(
60
+
"my_preregistration.Rmd"
61
+
, "cos_prereg"
62
+
, package = "prereg"
63
+
, create_dir = FALSE
64
+
, edit = FALSE
65
+
)
66
+
67
+
# Render document
68
+
rmarkdown::render("my_preregistration.Rmd")
59
69
```
60
70
61
71
Acknowledgements
62
72
----------------
63
73
64
74
The templates for the preregistrations were developed by the [Center for Open Science](https://cos.io/prereg/) and [AsPredicted.org](http://aspredicted.org), respectively. I thank both for their permission to use their material in this package.
0 commit comments