swh:1:snp:a4c99a50dc49f82b591f268001b320f8c3ca0041
Raw File
Tip revision: dc000f2a5f006d137f66716b086025d618bf8306 authored by John M Chambers on 14 July 2008, 00:00:00 UTC
version 1.0-5
Tip revision: dc000f2
chunks.R
## R functions to interface to Perl routines
## The Perl code routines must have been defined
## See the comments in tests/chunk*.R

chunksAdd <- function(table, data, convert)
    stop("This function has been decommissioned to avoid hassles from CRAN caused by (protected) calls to the RSPerl package.  If you want to experiment with it, uncomment the code at the bottom of this file and in the .onLoad function.")

chunksDrop <- function(table, data, convert)
    stop("This function has been decommissioned to avoid hassles from CRAN caused by (protected) calls to the RSPerl package.  If you want to experiment with it, uncomment the code at the bottom of this file and in the .onLoad function.")


## chunksadd <- function( table = RSPerl::.PerlExpr("\\%{0};", .convert = FALSE),
##                       data = character(),
##                       convert = length(data) == 0) {
##     if(!inherits(table, "PerlHashReference"))
##       stop(gettextf(
##        "Argument table must be reference to a Perl hash object; got an object of class \"%s\"",
##                     class(table)), domain = NA)
##     args <- c(list(table), as.list(data))
##  RSPerl::.Perl("chunks_add",  .args = args, convert = convert)
## }

## chunksDrop <- function(table,
##                        data = character(),
##                        convert = length(data) == 0) {
##     if(missing(table))
##       stop("Must start with a non-empty table")
##     else if(!inherits(table, "PerlHashReference"))
##       stop(gettextf(
##        "Argument table must be reference to a Perl hash object; got an object of class \"%s\"",
##                     class(table)), domain = NA)
##     args <- c(list(table), as.list(data))
##     RSPerl::.Perl("chunks_drop",  .args = args, convert = convert)
## }
back to top