Releases: r-lib/Rapp
Releases · r-lib/Rapp
Rapp 0.4.0
Breaking changes
- Rapp now checks parsed command line values against declared option
types instead of coercing them. Integer options require integer
values, so values like10.2ortrueproduce an error; float
options still accept integer values (#18). - Rapp now parses YAML with YAML 1.2 semantics. Bare
yesandno
non-Boolean option values are strings, not Boolean aliases. Boolean
options still accept YAML 1.1 aliases such asyes,no,y,n,
on, andofffor backward compatibility. - Command switches are now required by default. If a command is omitted,
Rapp prints scoped help. Add#| required: falseabove theswitch()
to allow running without a command (#21). - Boolean switch help now shows the command-line form that changes the
default:foo <- FALSEshows--foo,foo <- TRUEshows--no-foo,
andfoo <- NAshows--foo / --no-foo. Passing values remains more
permissive: switches accept explicit values such as--foo=falseand
--foo false. See the
Boolean option behavior table for the full
set of accepted forms (#28).
New features
#| examples:annotations now add usage examples to--helpoutput
(#23).- Boolean switches now do the expected thing for most users without
additional configuration. For exceptional needs,
#| negative_alias: falsedisables generated--no-*command-line
aliases while keeping the positive alias and explicit value forms such
as--foo=false(#24, #28).
Bug fixes
- Launcher front matter now accepts documented kebab-case option names,
such asdefault-packages(#19). - On Windows, tests now preserve the user
PATH(#26). - Rapp can now be installed from source on R versions before 4.0.0
(#30). - The installation docs now clarify that package apps are discovered as
exec/*.R, installed without the.Rextension by default, and
installed toRAPP_BIN_DIRwhen set (#20). install_pkg_cli_apps()now adds the default~/.local/bininstall
directory to the user's zsh profile on macOS when it is not already on
PATH. It respectsZDOTDIRand warns if the profile cannot be
updated (#35).- On Windows,
install_pkg_cli_apps()no longer replaces the current
processPATHwith only the user-levelPathafter adding launcher
directories. It now avoids duplicate entries, uses a short path when
available, and reports too-long user-levelPathvalues with a
remediation hint (#38).
Rapp 0.3.0
v0.3.0 Increment version number to 0.3.0
Rapp 0.2.0
- Updated default
--helpoutput. - Added a package logo.
- Moved repository to 'r-lib' on Github
- Added a
NEWS.mdfile to track changes to the package.
Rapp 0.1.0
-- no release notes --