Static method to load an Object from a file or a connection, which previously have been saved using
1 2 3 4 5 6
The path where the file exists.
Please note that no constructors are called when an Object is loaded and neither is any static class code called.
Returns a reference to the loaded Object.
Typically this static method is called as
<Object> is any Object class. When an Object has been
loaded, it is verified that it inherits from
<Object>. If it
does not, an exception is thrown. Thus,
load any Object, but
MyClass$load(...) will only load an Object
that inherits from MyClass. If loaded object is not of correct class,
an exception is thrown.
Due to a bug, likely in R itself, one can not specify the
argument by its name, i.e.
not work, but
Object$load("foo.RData") work just fine.
## Not run: For a complete example see help(Object).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.