Skip to content

Commit

Permalink
Switch default serialization and save format to 3.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@74800 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed May 29, 2018
1 parent d84217f commit 15c5a95
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions doc/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@

\section{\Rlogo CHANGES IN R-devel}{

\subsection{SIGNIFICANT USER-VISIBLE CHANGES}{
\itemize{
\item Serialization format version 3 becomes the default for all
serialization and saving of the workspace. Serialized data in format
3 cannot be read by versions of \R prior to version 3.5.0.
Serialization format version 2 is still supported and can be selected
by \code{version = 2} in \code{save()}, \code{serialize()} and
\code{saveRDS()}. The default can also be changed back for the whole R
session by setting environment variables \env{R_DEFAULT_SAVE_VERSION} and
\env{R_DEFAULT_SERIALIZE_VERSION} to \code{2}.
}
}

\subsection{NEW FEATURES}{
\itemize{
\item \code{Sys.setFileTime()} has been vectorized, its arguments
Expand Down
2 changes: 1 addition & 1 deletion src/main/saveload.c
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@ static int defaultSaveVersion()
if (val == 2 || val == 3)
dflt = val;
else
dflt = 2; /* the default */
dflt = 3; /* the default */
}
return dflt;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/serialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static int defaultSerializeVersion()
if (val == 2 || val == 3)
dflt = val;
else
dflt = 2; /* the default */
dflt = 3; /* the default */
}
return dflt;
}
Expand Down

0 comments on commit 15c5a95

Please sign in to comment.