Rev 59039 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/methods/man/fixPrevious.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\name{fixPre1.8}\alias{fixPre1.8}\title{Fix Objects Saved from R Versions Previous to 1.8}\description{Beginning with R version 1.8.0, the class of an object contains theidentification of the package in which the class is defined. Thefunction \code{fixPre1.8} fixes and re-assigns objects missing that information(typically because they were loaded from a file saved with a previousversion of R.)}\usage{fixPre1.8(names, where)}\arguments{\item{names}{ Character vector of the names of all the objects to befixed and re-assigned.}\item{where}{The environment from which to look for the objects, andfor class definitions. Defaults to the top environment of thecall to \code{fixPre1.8}, the global environment if the functionis used interactively.}}\details{The named object will be saved where it was found. Its classattribute 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 followingconditions hold:\enumerate{\item The named object exists.\item It is from a defined class (not a basic datatype whichhas no actual class attribute).\item The object appears to be from an earlier version of R.\item The class is currently defined.\item The object is consistent with the current class definition.}If any condition except the second fails, a warning message isgenerated.Note that \code{fixPre1.8} currently fixes \emph{only} the change inclass attributes. In particular, it will not fix binary versions ofpackages installed with earlier versions of R if these useincompatible features. Such packages must be re-installed fromsource, which is the wise approach always when major version changesoccur in R.}\value{The names of all the objects that were in fact re-assigned.}\keyword{classes}\keyword{programming}