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
Copy file name to clipboardExpand all lines: R/correct_attributes.R
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
#' @param only_labelled_missings don't set values to missing if there's no label for them
9
9
#' @param negative_values_are_missing by default we label negative values as missing
10
10
#' @param ninety_nine_problems SPSS users often store values as 99/999, should we do this for values with 5*MAD of the median
11
-
#' @param learn_from_labels if there are labels for missings of the form \preformatted{[-1]} no answer, set -1 in the data to the corresponding tagged missing
11
+
#' @param learn_from_labels if there are labels for missings of the form `[-1] no answer`, set -1 in the data to the corresponding tagged missing
12
12
#' @param missing also set these values to missing (or enforce for 99/999 within 5*MAD)
13
13
#' @param non_missing don't set these values to missing
Copy file name to clipboardExpand all lines: R/reliability.R
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,12 @@
1
1
#' Compute reliabilities
2
2
#'
3
3
#' If you pass the object resulting from a call to formr_results to this function, it will compute reliabilities for each scale.
4
-
#' Internally, each reliability computation is passed to a future. If you are calculating multilevel reliabilities, it may be worthwhile to parallelise this operation using future::plan
5
-
#' If you don't plan on any complicated parallelisation, you probably do not need to call this function directly, but can rely on it being automatically called during codebook generation.
4
+
#' Internally, each reliability computation is passed to a [future::future()].
5
+
#' If you are calculating multilevel reliabilities, it may be worthwhile to
6
+
#' parallelise this operation using [future::plan()].
7
+
#' If you don't plan on any complicated parallelisation, you probably do not
8
+
#' need to call this function directly, but can rely on it being automatically
9
+
#' called during codebook generation.
6
10
#' If you do plan to do that, you can pass the results of this operation to the codebook function.
7
11
#'
8
12
#' @param results a formr results table with attributes set on items and scales
Copy file name to clipboardExpand all lines: R/rmarkdown_helpers.R
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
#'
3
3
#' This slightly modifies the [knitr::knit_child()] function to have different defaults.
4
4
#' - the environment defaults to the calling environment.
5
-
#' - the output receives the class knit_asis, so that the output will be rendered "as is" by knitr when calling inside a chunk (no need to set results='asis' as a chunk option).
6
-
#' - defaults to quiet = TRUE
5
+
#' - the output receives the class `knit_asis`, so that the output will be rendered "as is" by knitr when calling inside a chunk (no need to set `results='asis'` as a chunk option).
6
+
#' - defaults to `quiet = TRUE`
7
7
#'
8
-
#' Why default to the calling environment? Typically this function defaults to the global environment. This makes sense if you want to use knit_children in the same context as the rest of the document.
9
-
#' However, you may also want to use knit_children inside functions to e.g. summarise a regression using a set of commands (e.g. plot some diagnostic graphs and a summary for a regression nicely formatted).
8
+
#' Why default to the calling environment? Typically this function defaults to the global environment. This makes sense if you want to use knit children in the same context as the rest of the document.
9
+
#' However, you may also want to use knit children inside functions to e.g. summarise a regression using a set of commands (e.g. plot some diagnostic graphs and a summary for a regression nicely formatted).
10
10
#'
11
11
#' Some caveats:
12
-
#' - the function has to return to the top-level. There's no way to [cat()] this from loops or an if-condition without without setting results='asis'. You can however concatenate these objects with [paste.knit_asis()]
12
+
#' - the function has to return to the top-level. There's no way to [cat()] this from loops or an if-condition without without setting `results='asis'`. You can however concatenate these objects with [paste.knit_asis()]
13
13
#'
14
14
#'
15
15
#' @param input if you specify a file path here, it will be read in before being passed to knitr (to avoid a working directory mess)
0 commit comments