r-lib/crayon

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

HenrikBengtsson opened this issue · 0 comments

The comment = ";" in:

crayon/R/ansi-palette.R

Lines 91 to 102 in 77e5d90

ansi_palettes <- rbind(
utils::read.table(
"tools/ansi-palettes.txt",
comment = ";",
stringsAsFactors = FALSE
),
utils::read.table(
"tools/ansi-iterm-palettes.txt",
comment = ";",
stringsAsFactors = FALSE
)
)

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)