loaddata

loaddata s -- load all data segments for the current process from the file whose name is stored in the string s. The file must have been created with dumpdata and the same version of Macaulay 2.

     i1 = dumpdata "temp.data"
     
     in = listUserSymbols
     in = describe R
     in = M
The file should have been created with dumpdata. Everything will be returned to its former state except:
  • reloaded, which counts how many times data has been dumped and restored.
  • environment, which now reflects the current environment.
  • commandLine, which now reflects the current command line.
  • Whether the standard input is echoed and prompts to the standard output are properly flushed, which depends on whether the standard input is a terminal.
  • After the data segments have been reloaded, the command line arguments will be dealt with in the usual way, except that only the arguments after the i-th '--' and before the i+1-st '--' (if any) will be considered, where i is the current value of reloaded.

    See also listUserSymbols.

    Go to main index.

    Go to concepts index.