Skip to content

Commit

Permalink
removing unnecessary docs, R CMD checks' cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Apr 13, 2012
1 parent d47b812 commit 5919b60
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 140 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
@@ -1,5 +1,4 @@
export(commands.blacklist) export(commands.blacklist)
export(formula.character)
export(sandbox) export(sandbox)
export(sandbox.env) export(sandbox.env)
export(sandbox.pretest) export(sandbox.pretest)
Expand Down
2 changes: 1 addition & 1 deletion R/init.R
@@ -1,6 +1,6 @@
.onLoad <- function(libname, pkgname) .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')))


} }
25 changes: 0 additions & 25 deletions R/masked.functions.R
@@ -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) { eval <- function(expr, envir, enclos) {


if (!missing(envir) | !missing(enclos)) if (!missing(envir) | !missing(enclos))
Expand All @@ -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, ...) { get <- function(x, pos, envir, ...) {


mc <- match.call() mc <- match.call()
Expand All @@ -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, ...) { assign <- function(x, value, ...) {


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




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


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




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


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




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


mc <- match.call(base::require) mc <- match.call(base::require)
Expand All @@ -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(), ...) formula.character <- function(x, env = parent.frame(), ...)
{ {
sandbox(x) sandbox(x)
Expand Down
8 changes: 5 additions & 3 deletions R/sandbox.R
Expand Up @@ -52,10 +52,10 @@ sandbox <- function(src, envir, time.limit = 10) {
commands.blacklist <- function(pkg) { commands.blacklist <- function(pkg) {


## blacklisted packages which would never be added: ## 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 ## * foreign, knitr, base64, brew etc.: file operations
## * xtable: no need for HTML/TeX output in templates ## * 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 ## * devtools, roxygen(2): no dev package needed
## * RJSONIO, opencpu.encode etc. ## * RJSONIO, opencpu.encode etc.
## * microbenchmark, logging, profiling etc. ## * microbenchmark, logging, profiling etc.
Expand All @@ -70,7 +70,9 @@ commands.blacklist <- function(pkg) {
stats = c('write.ftable', 'read.ftable'), stats = c('write.ftable', 'read.ftable'),
graphics = NULL, 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'), 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)) if (missing(pkg))
Expand Down
17 changes: 0 additions & 17 deletions man/assign.Rd

This file was deleted.

17 changes: 0 additions & 17 deletions man/eval.Rd

This file was deleted.

17 changes: 0 additions & 17 deletions man/formula.character.Rd

This file was deleted.

19 changes: 0 additions & 19 deletions man/get.Rd

This file was deleted.

13 changes: 0 additions & 13 deletions man/library.Rd

This file was deleted.

14 changes: 0 additions & 14 deletions man/objects.Rd

This file was deleted.

13 changes: 0 additions & 13 deletions man/require.Rd

This file was deleted.

0 comments on commit 5919b60

Please sign in to comment.