Loads a previously saved custom region annotation from a binary (RData) file.
If the region annotation cannot be loaded from the specified location, this function exits with an error message in
"unable to load object from ...". This could happen, for example, when
fname does not refer to
a valid RData file, or the file cannot be accessed due to security restrictions.
If the file is loaded in the current session, but no annotation was added, the function returns invisibly one of the following short failure messages:
The RData file does not store exactly the following three objects -
mapping, or they are not of the expected type.
The specified assembly is unknown.
"invalid format of regions"
The specified region annotation table is invalid.
"invalid format of mappings"
The specified region mapping tables are invalid.
TRUE if the annotation was loaded successfully; an error message if the objects in the
given file do not encode an annotation.