Skip to content
Permalink
Browse files

removing unnecessary docs, R CMD checks' cleanup

  • Loading branch information...
daroczig committed Apr 13, 2012
1 parent d47b812 commit 5919b60e010c3533eeea0cbe86c08228088e2c70
Showing with 6 additions and 140 deletions.
  1. +0 −1 NAMESPACE
  2. +1 −1 R/init.R
  3. +0 −25 R/masked.functions.R
  4. +5 −3 R/sandbox.R
  5. +0 −17 man/assign.Rd
  6. +0 −17 man/eval.Rd
  7. +0 −17 man/formula.character.Rd
  8. +0 −19 man/get.Rd
  9. +0 −13 man/library.Rd
  10. +0 −14 man/objects.Rd
  11. +0 −13 man/require.Rd
@@ -1,5 +1,4 @@
export(commands.blacklist)
export(formula.character)
export(sandbox)
export(sandbox.env)
export(sandbox.pretest)
@@ -1,6 +1,6 @@
.onLoad <- function(libname, pkgname)
{

message(sprintf("\nTo use all power of sandboxR and to really secure your environment, please run the following commands:\n\n\t * assignInNamespace('formula.character', sandboxR:::formula.character.masked, ns='stats')\n\nWARNING: These calls would update some _base_ functions and might have some unwanted side-effects!", system.file('startup.R', package = 'sandboxR')))
packageStartupMessage(sprintf("\nTo use all power of sandboxR and to really secure your environment, please run the following commands:\n\n\t * assignInNamespace('formula.character', sandboxR:::formula.character.masked, ns='stats')\n\nWARNING: These calls would update some _base_ functions and might have some unwanted side-effects!", system.file('startup.R', package = 'sandboxR')))

}
@@ -1,7 +1,3 @@
#' Masked eval
#' @param expr see \code{eval}
#' @param envir see \code{eval}
#' @param enclos see \code{eval}
eval <- function(expr, envir, enclos) {

if (!missing(envir) | !missing(enclos))
@@ -13,11 +9,6 @@ eval <- function(expr, envir, enclos) {
}


#' Masked get
#' @param x see \code{get}
#' @param pos see \code{get}
#' @param envir see \code{get}
#' @param ... see \code{get}
get <- function(x, pos, envir, ...) {

mc <- match.call()
@@ -35,10 +26,6 @@ get <- function(x, pos, envir, ...) {
}


#' Masked assign
#' @param x see \code{assign}
#' @param value see \code{assign}
#' @param ... see \code{assign}
assign <- function(x, value, ...) {

mc <- match.call()
@@ -56,9 +43,6 @@ assign <- function(x, value, ...) {
}


#' Masked ls
#' @param ... see \code{ls}
#' @aliases ls.masked
objects <- ls <- function(...) {

mc <- match.call(base::ls)
@@ -75,8 +59,6 @@ objects <- ls <- function(...) {
}


#' Masked library
#' @param ... see \code{library}
library <- function(...) {

mc <- match.call(base::library)
@@ -104,8 +86,6 @@ library <- function(...) {
}


#' Masked require
#' @param ... see \code{require}
require <- function(...) {

mc <- match.call(base::require)
@@ -129,11 +109,6 @@ require <- function(...) {
}


#' Masked formula.character
#' @param x see \code{formula.character}
#' @param env see \code{formula.character}
#' @param ... see \code{formula.character}
#' @export
formula.character <- function(x, env = parent.frame(), ...)
{
sandbox(x)
@@ -52,10 +52,10 @@ sandbox <- function(src, envir, time.limit = 10) {
commands.blacklist <- function(pkg) {

## blacklisted packages which would never be added:
## * datasets: no functions in there
## * from base packages: compiler, parralel, splines, stats4, rcltk, tools
## * foreign, knitr, base64, brew etc.: file operations
## * xtable: no need for HTML/TeX output in templates
## * rook, rredis etc. as no network connection is allowed
## * rook, rredis etc. as no network connection should be allowed
## * devtools, roxygen(2): no dev package needed
## * RJSONIO, opencpu.encode etc.
## * microbenchmark, logging, profiling etc.
@@ -70,7 +70,9 @@ commands.blacklist <- function(pkg) {
stats = c('write.ftable', 'read.ftable'),
graphics = NULL,
grDevices = c('bitmap', 'bmp', 'cairo_pdf', 'cairo_ps', 'CIDFont', 'dev2bitmap', 'devAskNewPage', 'dev.capabilities', 'dev.capture', 'dev.control', 'dev.copy', 'dev.copy2eps', 'dev.copy2pdf', 'dev.cur', 'dev.flush', 'dev.hold', 'deviceIsInteractive', 'dev.interactive', 'dev.list', 'dev.new', 'dev.next', 'dev.off', 'dev.prev', 'dev.print', 'dev.set', 'dev.size', 'embedFonts', 'getGraphicsEvent', 'getGraphicsEventEnv', 'graphics.off', 'jpeg', 'pdf', 'pdfFonts', 'pdf.options', 'pictex', 'png', 'postscript', 'postscriptFont', 'postscriptFonts', 'ps.options', 'quartz', 'quartzFont', 'quartzFonts', 'quartz.options', 'recordGraphics', 'recordPlot', 'replayPlot', 'savePlot', 'setEPS', 'setGraphicsEventEnv', 'setGraphicsEventHandlers', 'setPS', 'svg', 'tiff', 'Type1Font', 'x11', 'X11', 'X11Font', 'X11Fonts', 'X11.options', 'xfig'),
methods = c('addNextMethod', 'allGenerics', 'allNames', 'asMethodDefinition', 'assignClassDef', 'assignMethodsMetaData', 'balanceMethodsList', 'cacheGenericsMetaData', 'cacheMetaData', 'cacheMethod', 'callGeneric', 'callNextMethod', 'canCoerce', 'checkSlotAssignment', '.classEnv', 'classesToAM', 'classLabel', 'classMetaName', 'className', 'completeClassDefinition', 'completeExtends', 'completeSubclasses', 'conformMethod', 'defaultDumpName', 'defaultPrototype', 'doPrimitiveMethod', '.doTracePrint', 'dumpMethod', 'dumpMethods', 'el', 'elNamed', 'empty.dump', 'emptyMethodsList', 'evalOnLoad', 'evalqOnLoad', 'evalSource', 'existsFunction', 'existsMethod', 'finalDefaultMethod', 'findClass', 'findFunction', 'findMethod', 'findMethods', 'findMethodSignatures', 'findUnique', 'fixPre1.8', 'formalArgs', 'functionBody', 'generic.skeleton', 'getAccess', 'getAllMethods', 'getAllSuperClasses', 'getClass', 'getClassDef', 'getClasses', 'getClassName', 'getClassPackage', 'getDataPart', 'getExtends', 'getFunction', 'getGeneric', 'getGenerics', 'getGroup', 'getGroupMembers', 'getLoadActions', 'getMethod', 'getMethods', 'getMethodsForDispatch', 'getMethodsMetaData', 'getPackageName', 'getProperties', 'getPrototype', 'getRefClass', 'getSlots', 'getSubclasses', 'getValidity', 'getVirtual', 'hasArg', 'hasLoadAction', 'hasMethod', 'hasMethods', '.hasSlot', 'implicitGeneric', 'inheritedSlotNames', 'initFieldArgs', 'initialize', 'initRefFields', 'insertMethod', 'insertSource', 'isClass', 'isClassDef', 'isClassUnion', 'isGeneric', 'isGrammarSymbol', 'isGroup', 'isSealedClass', 'isSealedMethod', 'isVirtualClass', 'isXS3Class', 'languageEl', '.Last.lib', 'linearizeMlist', 'listFromMethods', 'listFromMlist', 'loadMethod', 'Logic', 'makeClassRepresentation', 'makeExtends', 'makeGeneric', 'makeMethodsList', 'makePrototypeFromClassDef', 'makeStandardGeneric', 'matchSignature', 'mergeMethods', 'metaNameUndo', 'MethodAddCoerce', 'methodSignatureMatrix', 'method.skeleton', 'MethodsList', 'MethodsListSelect', 'methodsPackageMetaName', 'missingArg', 'mlistMetaName', 'multipleClasses', 'new', 'newBasic', 'newClassRepresentation', 'newEmptyObject', 'Ops', 'packageSlot', 'possibleExtends', 'prohibitGeneric', 'promptClass', 'promptMethods', 'prototype', 'Quote', 'reconcilePropertiesAndPrototype', 'registerImplicitGenerics', 'rematchDefinition', 'removeClass', 'removeGeneric', 'removeMethod', 'removeMethods', 'removeMethodsObject', 'representation', 'requireMethods', 'resetClass', 'resetGeneric', 'S3Class', 'S3Part', 'sealClass', 'seemsS4Object', 'selectMethod', 'selectSuperClasses', '.selectSuperClasses', 'sessionData', 'setAs', 'setClass', 'setClassUnion', 'setDataPart', 'setGeneric', 'setGenericImplicit', 'setGroupGeneric', 'setIs', 'setLoadAction', 'setLoadActions', 'setMethod', 'setOldClass', 'setPackageName', 'setPrimitiveMethods', 'setRefClass', 'setReplaceMethod', 'setValidity', 'showClass', 'showDefault', 'showExtends', 'showMethods', 'showMlist', 'signature', 'SignatureMethod', 'sigToEnv', 'slot', 'slotNames', '.slotNames', 'slotsFromS3', 'substituteDirect', 'substituteFunctionArgs', 'superClassDepth', 'testInheritedMethods', 'testVirtual', 'traceOff', 'traceOn', '.TraceWithMethods', 'tryNew', 'trySilent', 'unRematchDefinition', '.untracedFunction', 'validObject', 'validSlotNames', '.valueClassTest')
methods = c('addNextMethod', 'allGenerics', 'allNames', 'asMethodDefinition', 'assignClassDef', 'assignMethodsMetaData', 'balanceMethodsList', 'cacheGenericsMetaData', 'cacheMetaData', 'cacheMethod', 'callGeneric', 'callNextMethod', 'canCoerce', 'checkSlotAssignment', '.classEnv', 'classesToAM', 'classLabel', 'classMetaName', 'className', 'completeClassDefinition', 'completeExtends', 'completeSubclasses', 'conformMethod', 'defaultDumpName', 'defaultPrototype', 'doPrimitiveMethod', '.doTracePrint', 'dumpMethod', 'dumpMethods', 'el', 'elNamed', 'empty.dump', 'emptyMethodsList', 'evalOnLoad', 'evalqOnLoad', 'evalSource', 'existsFunction', 'existsMethod', 'finalDefaultMethod', 'findClass', 'findFunction', 'findMethod', 'findMethods', 'findMethodSignatures', 'findUnique', 'fixPre1.8', 'formalArgs', 'functionBody', 'generic.skeleton', 'getAccess', 'getAllMethods', 'getAllSuperClasses', 'getClass', 'getClassDef', 'getClasses', 'getClassName', 'getClassPackage', 'getDataPart', 'getExtends', 'getFunction', 'getGeneric', 'getGenerics', 'getGroup', 'getGroupMembers', 'getLoadActions', 'getMethod', 'getMethods', 'getMethodsForDispatch', 'getMethodsMetaData', 'getPackageName', 'getProperties', 'getPrototype', 'getRefClass', 'getSlots', 'getSubclasses', 'getValidity', 'getVirtual', 'hasArg', 'hasLoadAction', 'hasMethod', 'hasMethods', '.hasSlot', 'implicitGeneric', 'inheritedSlotNames', 'initFieldArgs', 'initialize', 'initRefFields', 'insertMethod', 'insertSource', 'isClass', 'isClassDef', 'isClassUnion', 'isGeneric', 'isGrammarSymbol', 'isGroup', 'isSealedClass', 'isSealedMethod', 'isVirtualClass', 'isXS3Class', 'languageEl', '.Last.lib', 'linearizeMlist', 'listFromMethods', 'listFromMlist', 'loadMethod', 'Logic', 'makeClassRepresentation', 'makeExtends', 'makeGeneric', 'makeMethodsList', 'makePrototypeFromClassDef', 'makeStandardGeneric', 'matchSignature', 'mergeMethods', 'metaNameUndo', 'MethodAddCoerce', 'methodSignatureMatrix', 'method.skeleton', 'MethodsList', 'MethodsListSelect', 'methodsPackageMetaName', 'missingArg', 'mlistMetaName', 'multipleClasses', 'new', 'newBasic', 'newClassRepresentation', 'newEmptyObject', 'Ops', 'packageSlot', 'possibleExtends', 'prohibitGeneric', 'promptClass', 'promptMethods', 'prototype', 'Quote', 'reconcilePropertiesAndPrototype', 'registerImplicitGenerics', 'rematchDefinition', 'removeClass', 'removeGeneric', 'removeMethod', 'removeMethods', 'removeMethodsObject', 'representation', 'requireMethods', 'resetClass', 'resetGeneric', 'S3Class', 'S3Part', 'sealClass', 'seemsS4Object', 'selectMethod', 'selectSuperClasses', '.selectSuperClasses', 'sessionData', 'setAs', 'setClass', 'setClassUnion', 'setDataPart', 'setGeneric', 'setGenericImplicit', 'setGroupGeneric', 'setIs', 'setLoadAction', 'setLoadActions', 'setMethod', 'setOldClass', 'setPackageName', 'setPrimitiveMethods', 'setRefClass', 'setReplaceMethod', 'setValidity', 'showClass', 'showDefault', 'showExtends', 'showMethods', 'showMlist', 'signature', 'SignatureMethod', 'sigToEnv', 'slot', 'slotNames', '.slotNames', 'slotsFromS3', 'substituteDirect', 'substituteFunctionArgs', 'superClassDepth', 'testInheritedMethods', 'testVirtual', 'traceOff', 'traceOn', '.TraceWithMethods', 'tryNew', 'trySilent', 'unRematchDefinition', '.untracedFunction', 'validObject', 'validSlotNames', '.valueClassTest'),
datasets = NULL
#grid = c()
)

if (missing(pkg))

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

0 comments on commit 5919b60

Please sign in to comment.
You can’t perform that action at this time.