(In)Completeness of the R Documentation

Everything related to the development of modules in jamovi
Post Reply
DStuder
Posts: 15
Joined: Wed Jun 07, 2023 8:07 am

(In)Completeness of the R Documentation

Post by DStuder »

Hi guys

I am currently in the process of finishing up my module and writing the documentation. During this process I noticed that in the R documentation of the package under "Usage", for arguments that have a dropdown-style string-selector (e.g. the direction of the hypothesis, which can be "less", "two.sided" or "greater") the documentation only shows the default value instead of all possible values:

Code: Select all

function(
	data,
	alternative = "two.sided"
	)
It's not a big deal, as I can just name the options under "Arguments". But it might be a bit confusing for R users, as usually all options of the argument are listed under "Usage". As an example for `?stats::binom.test()`

Code: Select all

binom.test(x, n, p = 0.5,
           alternative = c("two.sided", "less", "greater"),
           conf.level = 0.95)
No doubt there is a technical explanation for this behavior. Just wanted to point it out.

Best,
Dan
Post Reply