A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/brodieG/diffobj/issues/132 below:

repeated 'pager' entry in prototype for pager class · Issue #132 · brodieG/diffobj · GitHub

In CRAN's diffobj-0.2.2 R/pager.R provides two 'pager' entries in the prototype for class 'Pager'. That seems wrong and one of them should be omitted. Currently the second, which calls stop(), is the one used, but it seems like the first would be a better default value.

setClass(
  "Pager",
  slots=c(
    pager="function", file.ext="character", threshold="numeric",
    ansi="logical", file.path="character", make.blocking="logical"
  ),
  prototype=list(
    pager=function(x) writeLines(readLines(x)), file.ext="", threshold=0L,
    pager=function(x) stop("Pager object does not specify a paging function."),
    ansi=FALSE, file.path=NA_character_, make.blocking=FALSE
  )

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4