Fix Objects Saved from R Versions Previous to 1.8
Beginning with R version 1.8.0, the class of an object contains the
identification of the package in which the class is defined. The
fixPre1.8 fixes and re-assigns objects missing that information
(typically because they were loaded from a file saved with a previous
version of R.)
Character vector of the names of all the objects to be fixed and re-assigned.
The environment from which to look for the objects, and
for class definitions. Defaults to the top environment of the
The named object will be saved where it was found. Its class attribute will be changed to the full form required by R 1.8; otherwise, the contents of the object should be unchanged.
Objects will be fixed and re-assigned only if all the following conditions hold:
The named object exists.
It is from a defined class (not a basic datatype which has no actual class attribute).
The object appears to be from an earlier version of R.
The class is currently defined.
The object is consistent with the current class definition.
If any condition except the second fails, a warning message is generated.
fixPre1.8 currently fixes only the change in
class attributes. In particular, it will not fix binary versions of
packages installed with earlier versions of R if these use
incompatible features. Such packages must be re-installed from
source, which is the wise approach always when major version changes
occur in R.
The names of all the objects that were in fact re-assigned.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.