crayon icon indicating copy to clipboard operation
crayon copied to clipboard

Partial argument name: read.table(..., comment = ";")

Open HenrikBengtsson opened this issue 3 years ago • 0 comments

The comment = ";" in:

https://github.com/r-lib/crayon/blob/77e5d9069a2c231f20d694209885b8f95665eb67/R/ansi-palette.R#L91-L102

should be comment.char = ";".

Got a warning about this during package installation;

* installing *source* package ‘crayon’ ...
** package ‘crayon’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Warning in utils::read.table("tools/ansi-palettes.txt", comment = ";", stringsAsFactors = FALSE) :
  partial argument match of 'comment' to 'comment.char'
Calls: <Anonymous> ... tryCatchOne -> doTryCatch -> sys.source -> eval -> eval -> rbind
Warning in utils::read.table("tools/ansi-iterm-palettes.txt", comment = ";",  :
  partial argument match of 'comment' to 'comment.char'
Calls: <Anonymous> ... doTryCatch -> sys.source -> eval -> eval -> rbind -> rbind
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (crayon)

HenrikBengtsson avatar Mar 28 '22 00:03 HenrikBengtsson