Description Format Details Active bindings Methods Author(s)
Handles file names for the pguIMP shiny web interface.
R6::R6Class object.
The class stores filenames and upload specifications for the pguIMP shiny web interface in its instance variables. This object is used by the shiny based gui and is not for use in individual R-scripts!
uploadFileName
Returns the instance variable uploadFileName (character)
fileName
Returns the instance variable fileName (character)
baseName
Returns the instance variable baseName (character)
folderName
Returns the instance variable folderName (character)
suffix
Returns the instance variable suffix (character)
exportSuffix
Returns the instance variable exportSuffix (character)
timeString
Returns the instance variable timeString (character)
sheetIndex
Returns the instance variable sheetIndex (numeric)
separator
Returns the instance variable separator (character)
skipRows
Returns the instance variable skipRows (numeric)
columnNames
Returns the instance variable columnNames (logical)
naChar
Returns the instance variable naChar (character)
new()
Clears the heap and
indicates that instance of pgu.file
is removed from heap.
Splits fileName and writes the results in the class' instance variables folderName, baseName, suffix.
Stores the current system time into the instance variable timeString.
Creates and returns a new object of type pgu.file.
pgu.file$new( uploadFileName = "", fileName = "", sheetIndex = 1, separator = ",", skipRows = 0, columnNames = TRUE, naChar = "NA" )
uploadFileName
Name of uploaded file. (string)
fileName
Actual file name. (string)
sheetIndex
Index excel sheet to import. (integer)
separator
Character for column separation. (character)
skipRows
Number of rows to skip. (integer)
columnNames
Indicates if the data source file has a columnNames. (logical)
naChar
Character for missing values. (string)
A new pgu.file object. (pguIMP::pgu.file)
print()
Prints the instance variables of the object.
pgu.file$print()
string
reset()
Resets the instance variables of the object.
pgu.file$reset( uploadFileName = "", fileName = "", sheetIndex = 1, separator = ",", skipRows = 0, columnNames = TRUE, naChar = "NA" )
uploadFileName
Name of uploaded file. (string)
fileName
Actual file name. (string)
sheetIndex
Index excel sheet to import. (integer)
separator
Character for column separation. (character)
skipRows
Number of rows to skip. (integer)
columnNames
Indicates if the data source file has a columnNames. (logical)
naChar
Character for missing values. (string)
fit()
Extracts information about upload specifications from the instance variables.
pgu.file$fit()
predict()
Predicts an export file name.
pgu.file$predict(affix = "analysis")
affix
User dedined file name affix. (string)
A file name. (string)
fit_predict()
Extracts information about upload specifications from the instance variables and predicts an export file name.
pgu.file$fit_predict(affix = "analysis")
affix
User dedined file name affix. (string)
A file name. (string)
clone()
The objects of this class are cloneable with this method.
pgu.file$clone(deep = FALSE)
deep
Whether to make a deep clone.
Sebastian Malkusch, malkusch@med.uni-frankfurt.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.