---help
,---version
super arguments (scribeSuperArg
objects) are now included withscribeCommandArgs
. This are objects that (by default) can be called within anyscribeCommandArgs
and intended to hold additional information about the{scribe}
package. These are not meant to be user accessible.scribeCommandArgs
gain a newfield
,supers
; a list ofscribeSuperArg
objectscommand_args(super = included)
added- internal
scribe_version_arg()
function (used withcommand_args(include = "verison")
and called with--version
) is now deprecated. Using---version
now returns the version of{scribe}
- internal
scribe_help_super()
now available via---help
and returns information about{scribe}
ca$get_args(super = TRUE)
returnsscribeSuerArg
s
ca$help()
printing has been improved- corrects issue with
ca$parse()
ca$get_values(empty, super, included)
added to prevent filtering of specific argument types and values- internal linting improvements
new_arg()
now throws a more helpful error when value doesn't convert to itselfarg$show()
now denotes if the argument is resolves by display an"R"
before the valuearg$show()
now prints values of class"scribe_empty_value"
as<empty>
arg$add_argument()
correctly passes all method arguments #78ca$parse()
correctly deals with new arguments that nave the same name as ones inincluded
#80
$convert
field now defaults to the newly exportedscribe_convert()
helper- This selects one of three conversions: 1) default (see next bullet), 2) string evaluation, and 3) no conversion.
- default conversions use
value_convert()
, which internally usesutils::type.convert()
(and some additional steps for dates. Be aware thattype.convert("1", as.is = TRUE)
will return integers, and a decimal should be included if a numeric is desired (e.g.,type.convert("1.", as.is = TRUE)
- previously, a prototype could be set (e.g.,
convert = character()
), which will now fail but can be replaced with a simple function (e.g.,convert = as.character
).
convert
is no longer ignored when set inscribeArg
#70
flag
action now acceptsNA
as a default #67
- GitHub workflow added to maintain version bumps on merge
jmbarbone/actions/r-check-version
--help
no longer fails whenscribeArg
haslength(info) > 1
#59
execute
is a new field forscribeArg
where a function can be called #63stop
is a new field forscribeArg
which controls how further arguments are parsed and allows for early stops #60options()
for{scribe}
are now listed in?scribe
documentation and set in.onAttach()
#57scribeArgs
can now be given a separatescribeArg
as a default #54- positional arguments now can have default values #52
scribeArgs
withaction = 'flag'
now acceptdefault = TRUE
#55 and (when optionno = TRUE
) can also acceptNA
#67
scribeArgs
withaction = "flag"
will now throw anerror
instead of awarning
whendefault
is notlogical(1)
#68
- Added a
NEWS.md
file to track changes to the package.