# File src/library/base/R/sys.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2012 The R Core Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # A copy of the GNU General Public License is available at # http://www.r-project.org/Licenses/ sys.call <- function(which = 0L) .Internal(sys.call(which)) sys.calls <- function() .Internal(sys.calls()) sys.frame <- function(which = 0L) .Internal(sys.frame(which)) sys.function <- function(which = 0L) .Internal(sys.function(which)) sys.frames <- function() .Internal(sys.frames()) sys.nframe <- function() .Internal(sys.nframe()) sys.parent <- function(n = 1L) .Internal(sys.parent(n)) sys.parents <- function() .Internal(sys.parents()) sys.status <- function() list(sys.calls = sys.calls(), sys.parents = sys.parents(), sys.frames = sys.frames()) sys.on.exit <- function() .Internal(sys.on.exit())