Rev 83880 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/base-defunct.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2023 R Core Team% Distributed under GPL 2 or later\name{base-defunct}\alias{base-defunct}\title{Defunct Functions in Package \pkg{base}}%------ PLEASE: put \alias{.} here for EACH !\alias{Version}\alias{provide}\alias{.Provided}\alias{category}\alias{print.anova.glm}\alias{print.anova.lm}\alias{print.tabular}\alias{print.plot}\alias{save.plot}\alias{system.test}\alias{getenv}\alias{read.table.url}\alias{scan.url}\alias{source.url}\alias{httpclient}\alias{parse.dcf}\alias{.Alias}\alias{print.ordered}\alias{.Dyn.libs}\alias{.lib.loc}\alias{machine}\alias{Platform}\alias{Machine}\alias{restart}\alias{printNoClass}\alias{codes}\alias{codes.factor}\alias{codes.ordered}\alias{codes<-}\alias{print.atomic}\alias{La.eigen}\alias{tetragamma}\alias{pentagamma}\alias{package.description}\alias{loadURL}\alias{delay}\alias{write.table0}\alias{format.char}\alias{La.chol}\alias{La.chol2inv}\alias{symbol.C}\alias{symbol.For}\alias{unix}\alias{gammaCody}\alias{manglePackageName}\alias{.Import}\alias{.ImportFrom}\alias{.Export}\alias{.First.lib}\alias{mem.limits}\alias{.readRDS}\alias{.saveRDS}\alias{Sys.putenv}\alias{real}\alias{as.real}\alias{is.real}\alias{.find.package}\alias{.path.package}\alias{unix.time}\alias{default.stringsAsFactors}\alias{.__H__.cbind}\alias{.__H__.rbind}%\description{The functions or variables listed here are no longer part of \R asthey are no longer needed.}\usage{# Defunct in 1.xVersion()provide(package).Providedcategory(\dots)print.anova.glm(.)print.anova.lm(.)print.tabular(.)print.plot(.)save.plot(.)system.test(.)getenv(\dots)read.table.url(url, method, \dots)scan.url(url, file = tempfile(), method, \dots)source.url(url, file = tempfile(), method, \dots)httpclient(url, port = 80, error.is.fatal = TRUE,check.MIME.type = TRUE, file = tempfile(),drop.ctrl.z = TRUE)parse.dcf(text = NULL, file = "", fields = NULL,versionfix = FALSE).Alias(expr)print.ordered(.).Dyn.libs.lib.locmachine()Machine()Platform()restart()printNoClass(x, digits = NULL, quote = TRUE, na.print = NULL,print.gap = NULL, right = FALSE, \dots)codes(x, \dots)codes(x, \dots) <- value# Defunct in 2.0.0La.eigen(x, symmetric, only.values = FALSE,method = c("dsyevr", "dsyev"))tetragamma(x)pentagamma(x)package.description(pkg, lib.loc = NULL, fields = NULL)# Defunct in 2.2.0loadURL(url, envir = parent.frame(), quiet = TRUE, \dots)delay(x, env = .GlobalEnv)# Defunct in 2.3.0format.char(x, width = NULL, flag = "-")# Defunct in 2.4.0La.chol(x)La.chol2inv(x, size = ncol(x))# Defunct in 2.4.0symbol.C(name)symbol.For(name)# Defunct in 2.5.0unix(call, intern = FALSE)# Defunct in 2.8.0gammaCody(x)# Defunct in 2.9.0manglePackageName(pkgName, pkgVersion)# Defunct in 2.13.0.Import(...).ImportFrom(name, ...).Export(...)# Defunct in 2.14.0.First.lib(lib, pkg)# Defunct in 2.15.0, removed for 4.0.0mem.limits(nsize = NA, vsize = NA).saveRDS(\dots).readRDS(\dots)Sys.putenv(\dots) # (removed much earlier)# Defunct in 3.0.0real(length = 0)as.real(x, \dots)is.real(x)# Defunct in 3.1.0, removed for 4.1.0.find.package(\dots).path.package(\dots)# Defunct in 4.2.0unix.time(\dots) ### -- use system.time(...) instead# Defunct in 4.3.0default.stringsAsFactors() # use stringsAsFactors = FALSE instead.}\details{Some of these have stubs which report that they are defunct, but mosthave been removed completely (apart from being documented here).\code{category} has been an old-S function before there were factors;should be replaced by \code{\link{factor}} throughout!The new function \code{dev.print()} should now be used for savingplots to a file or printing them.\code{provide} and its object \code{.Provided} have been removed.Their intended purpose was to allow one package to subsume another,but this was never used.\code{getenv} has been replaced by \code{\link{Sys.getenv}}.\code{*.url} are replaced by calling \code{read.table}, \code{scan} or\code{source} on a \code{\link{url}} connection.\code{httpclient} was used by the deprecated \code{"socket"} methodof \code{\link{download.file}}.\code{parse.dcf} has been replaced by \code{read.dcf}, which is muchfaster, but has a slightly different interface.\code{.Alias} provided an unreliable way to create duplicatereferences to the same object. There is no direct replacement. Wheremultiple references to a single object are required for semanticreasons consider using environments or external pointers. There aresome notes on \url{https://developer.r-project.org}.\code{.Dyn.libs} and \code{.lib.loc} were internal variables used forstoring and manipulating the information about packages with DLLs, andthe known \R library trees. These are now dynamic variables which onecan get or set using \code{\link{.dynLibs}} and\code{\link{.libPaths}}, respectively.\code{Machine()} and \code{Platform()} were functions returning thevariables \code{\link{.Machine}} and \code{\link{.Platform}}respectively.\code{restart()} should be replaced by \code{try()}, in preparationfor an exception-based implementation. If you use \code{restart()} ina way that cannot be replaced with \code{try()} then ask for helpon \code{r-devel}.\code{printNoClass} was in package \pkg{methods} and called directly theinternal function \code{print.default}.\code{codes} was almost always used inappropriately. To get theinternal coding of a factor, use \code{unclass}, \code{as.vector} or\code{as.integer}. For \emph{ordered} factors, \code{codes} wasequivalent to these, but for \emph{unordered} factors it assumed analphabetical ordering of the levels in the locale in use.\code{La.eigen} has become the default for \code{\link{eigen}}.\code{tetragamma} and \code{pentagamma} have been replaced by\code{\link{psigamma}}.\code{package.description} has been replaced by\code{\link{packageDescription}} in package \pkg{utils}.\code{loadURL} has been superseded by \code{\link{load}(url())}.\code{delay} has been replaced by \code{\link{delayedAssign}}.Unevaluated promises should never be visible.\code{write.table0} was an \R-level version of \code{write.table}provided for temporary back-compatibility.\code{format.char} was an auxiliary function for \code{\link{formatC}}whose functionality (and more) is provided by \code{\link{format.default}}.\code{La.chol} and \code{La.chol2inv} became the default methods for\code{\link{chol}} and \code{\link{chol2inv}}.Functions \code{symbol.C} and \code{symbol.For} were provided forhistorical compatibility with S. \code{symbol.C} just returns itsargument unchanged, whereas \code{symbol.For} will map to lower caseand append an underscore on those platforms (almost all) which do sofor Fortran symbols. These are no longer of any use in \R.\code{unix} was a \emph{deprecated} (since the 1990s) alternative to\code{\link{system}}, available for backwards compatibility with S.\code{gammaCody} was the \eqn{(\Gamma)} function from the Specfunpackage used at C level in the Bessel code. The \R-level interface washere for experimental purposes.\code{manglePackageName} was part of the defunct support for versionedinstalls.\code{.Import}, \code{.ImportFrom}, and \code{.Export} were part of anexperimental alternative way to specify namespaces.\code{.First.lib} was the load/attach hook for packages withoutnamespaces: use \code{\link{.onLoad}} or \code{\link{.onAttach}} instead.\code{mem.limits} reported on the old-style limits on the number ofcons cells and size of the vector heap. These are no longer limitedexcept by overall memory limits.\code{.readRDS} and \code{.saveRDS}, were internal-only versions (andthe only versions available prior to \R 2.13.0) of\code{\link{readRDS}} and \code{\link{saveRDS}}.\code{Sys.putenv} was a synonym for \code{\link{Sys.setenv}},deprecated since \R 2.5.0.\code{real}, \code{as.real} and \code{is.real} were long-deprecatedsynonyms for the \code{double} versions.\code{.find.package} and \code{.path.package} were internal-onlyversions prior to \R 2.13.0, and since deprecated wrappers for\code{\link{find.package}} and \code{\link{path.package}}.\code{unix.time} has been an \dQuote{alias} for\code{\link{system.time}}, for historical S compatibility.}\seealso{\code{\link{Defunct}}, \code{\link{base-deprecated}}}\keyword{internal}