Changelog
Source:NEWS.md
fuj (development version)
-
require_namespace()
now produces a more reasonable error when specifying a version #63 - adds
yes_no()
prompting #64 - adds internal
package()
utility as the default fornew_condition(pkg = package())
#67
fuj 0.2.0
CRAN release: 2024-05-07
New features
-
fp()
added for creating file path objects withis_path()
as a means of checking for the class;file_path()
andis_file_path()
exported as aliases, respectively #55 -
include()
added as a means of partially attaching a package with specific exports #49 -
op.fuj
, a named list of default options for fuj is now exported - multiple improvements for
verbose()
#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 toFALSE
) -
.verbose
can be set toTRUE
to print the message rather than relying onoptions()
-
-
verbose()
prints prepended with"verbose "
instead of"[verbose] "
#42 -
make_verbose()
is included to create a verbose function that will be triggered with a configured option, rather than the defaultgetOption("fuj.verbose", getOption("verbose"))
pattern. This can be used to define your own custom verbose function:
-
-
lst()
exported as an alias forlist0()
Internals
-
%||%
is now copied from{base}
when available (R versions >= 4.4) #35 - additional local testing for os version
-
covr dropped as a
suggest
dependency -
require_namespace()
now allows for version requirements (e.g.,require_namespace("fuj>=0.1.4")
). When the version requirement is not met, an error of classnamespaceVersionError
is returned #41 -
simpleError
s converted to custom errors #43
fuj 0.1.4
CRAN release: 2023-10-22
- adds
%::%
and%:::%
(which now aliases%colons$
) or retrieving exported and non-exported values from namespaces #31 - adds
verbose()
for conditional message printing #29 - GitHub workflow added to maintain version bumps on merge
jmbarbone/actions/r-check-version
fuj 0.1.2
CRAN release: 2023-03-06
-
new_condition()
gains apkg
argument to control for prepending a package name to the condition call. The default value ofTRUE
will try to find the.packageName
object from your package. Change the default setting ofpkg
to prevent this addition. #12 -
require_namespace()
can now accept multiple namespaces. The first namespace not found will throw an error #14 -
list0()
now correctly throws valid errors #19 - typo fixed in README #20