require_namespace()
now produces a more reasonable
error when specifying a version #63yes_no()
prompting #64package()
utility as the default for
new_condition(pkg = package())
#67new_condition()
now allows
type = "message"
#74quick_df(list())
now works #72struct()
#78lst()
again works with NA_character_
#60fp()
added for creating file path objects with
is_path()
as a means of checking for the class;
file_path()
and is_file_path()
exported as
aliases, respectively #55include()
added as a means of partially attaching a
package with specific exports #49op.fuj
, a named list of default options for
{fuj}
is now exportedverbose()
#50
verbose()
has additional options for controlling the
message output #36
.label
can be set to a string to prepend to the message
(defaults to "[verbose]"
).fill
can be set to repeat .label
on each
line of the message (defaults to FALSE
).verbose
can be set to TRUE
to print the
message rather than relying on options()
verbose()
prints prepended with "verbose "
instead of "[verbose] "
#42make_verbose()
is included to create a verbose function
that will be triggered with a configured option, rather than the default
getOption("fuj.verbose", getOption("verbose"))
pattern.
This can be used to define your own custom verbose function:lst()
exported as an alias for
list0()
library(fuj)
options(fuj.verbose = FALSE)
verbose("will not show")
options(my.verbose = TRUE)
<- make_verbose("my.verbose")
my_verbose my_verbose("will show")
#> [verbose] will show
%||%
is now copied from {base}
when
available (R versions >= 4.4) #35{covr}
dropped as a suggest
dependencyrequire_namespace()
now allows for version requirements
(e.g., require_namespace("fuj>=0.1.4")
). When the
version requirement is not met, an error of class
namespaceVersionError
is returned #41simpleError
s converted to custom errors #43%::%
and %:::%
(which now aliases
%colons$
) or retrieving exported and non-exported values
from namespaces #31verbose()
for conditional message printing #29jmbarbone/actions/r-check-version
list0()
now accepts named
arguments in
...
#25new_condition()
gains a pkg
argument to
control for prepending a package name to the condition call. The default
value of TRUE
will try to find the
.packageName
object from your package. Change the default
setting of pkg
to prevent this addition. #12require_namespace()
can now accept multiple namespaces.
The first namespace not found will throw an error #14list0()
now correctly throws valid errors #19subset2
is now exported as an alias of [[
and subset3
is added as an alias of $
#3NEWS.md
file to track changes to the
package.