emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
613 stars 160 forks source link

Help buffer contains R warning when warnPartialMatchArgs=TRUE #1205

Open jaganmn opened 1 year ago

jaganmn commented 1 year ago

The warnings

Warning messages:
1: In (function (topic, package = NULL, lib.loc = NULL, verbose = getOption("verbose"),  :
  partial argument match of 'help' to 'help_type'
2: In match.call(definition, call, expand.dots, envir) :
  partial argument match of 'help' to 'help_type'

appear at the bottom of the help buffer created when I evaluate

options(warnPartialMatchArgs = TRUE)
?help

The warnings seem attributable to logic in .ess.help:

https://github.com/emacs-ess/ESS/blob/5e6bfa14a328095833a038275105f3aa31715a17/etc/ESSR/R/.basic.R#L25-L45

Since names containing underscores were made syntactically valid in R 1.9.0, can the .ess.Rversion > "2.10" branch not safely return .ess.help(..., help_type = help.type), i.e., not abbreviating help_type to help?