Dump () in R not source () capable output contains "..."

I am trying to use dump () to save my analysis settings so that I can examine them in a text editor or reload them later. In my code, I am using the command

dump(ls(), settingsOutput, append=TRUE)

      

A file defined by `settingsOutput 'is created, but larger objects and locally defined functions are truncated. Here is an excerpt from such a file. Note that these files are usually in the order of several kilobytes.

createFilePrefix <-
function (runDesc, runID, restartNumber) 
{
  ...
createRunDesc <-
function (genomeName, nGenes, nMix, mixDef, phiFlag) 
{
  ...
datasetID <-
"02"
descriptionPartsList <-
c("genomeNameTest", "nGenesTest", "numMixTest", "mixDefTest", 
"phiFlagTest", "runDescTest", "runIDTest", "restartNumberTest"
  ...
diffTime <-
structure(0.531, units = "hours", class = "difftime")
dissectObjectFileName <-
function (objectFileName) 
{
  ...
divergence <-
0

      

For reference, here's one of the functions defined above

createFilePrefix <- function(runDesc, runID, restartNumber){
    paste(runDesc,  "_run-", runID, "_restartNumber-", restartNumber, sep="")
}

      

Right now, I go back and delete the problematic lines and then upload the files, but I would rather actually have the code that works as intended.

Can someone explain to me why I am getting this behavior and what to do to fix it?

+1


source to share





All Articles