ID EN
Miscellaneous

base-internal

R Base 3.6.2 🇮🇩 Bahasa Indonesia

Objek internal dalam paket dasar yang sebagian besar hanya dapat dilihat oleh pengguna karena sifat khusus dari namespace dasar.

Syntax

R
.subset(x, …)
.subset2(x, &#8230;)<p></p><p>.getRequiredPackages(file = "DESCRIPTION", lib.loc = NULL,
                     quietly = FALSE, useImports = FALSE)
.getRequiredPackages2(pkgInfo, quietly = FALSE, lib.loc = NULL,
                      useImports = FALSE)</p><p><!-- %testPlatformEquivalence(built, run) -->
<!-- % -->
.isMethodsDispatchOn(onOff = NULL)</p><p>sys.load.image(name, quiet)
sys.save.image(name)</p><p>.row_names_info(x, type = 1L)
.set_row_names(n)</p><p>findPackageEnv(info)</p><p>lazyLoadDBfetch(key, file, compressed, hook)</p><p>.TAOCP1997init(seed)</p><p>.gt(x, i, j)
.gtn(x, strictly)</p><p>.primTrace(obj)
.primUntrace(obj)</p><p>.Date(xx, cl = "Date")
.POSIXct(xx, tz = NULL, cl = c("POSIXct", "POSIXt"))
.POSIXlt(xx, tz = NULL, cl = c("POSIXlt", "POSIXt"))
.difftime(xx, units, cl = "difftime")</p><p>.cache_class(class, extends)</p><p>.popath</p><p>.mapply(FUN, dots, MoreArgs)</p><p>.detach(pos)</p><p>.maskedMsg(same, pkg, by)</p><p>.fixupGFortranStdout()
.fixupGFortranStderr()</p>

Arguments

Parameter Deskripsi
x object from which to extract elements.
file The full path to the DESCRIPTION file of a package.
lib.loc a character vector describing the location of R library trees to search through, or NULL. The default value of NULL corresponds to all libraries currently known to .libPaths().
quiet logical. Should this not give warnings or an error if the package(s) are not found?
useImports logical. Should the Imports field be processed?
quietly logical: should message(s) be printed.
pkginfo A processed DESCRIPTION file of class "packageDescription2".
built, run platform strings of the form "cpu-vendor-os".
name name of image file to save or load.
x an object with a "row.names" attribute, typically a data frame.
type integer. Currently type = 0 returns the internal "row.names" attribute (possibly NULL), type = 2 the number of rows implied by the attribute, and type = 1 the latter with a negative sign for ‘automatic’ row names.
n integer. The number of rows.
info character string such as "package:MASS".
key the object name in a lazyload database.
file the filepath to a lazyload database.
compressed logical: are the values in the database compressed?
refhook a load hook: see unserialize.
seed a length-one integer vector.
i, j indices.
strictly logical.
obj an R object.
xx a classless object to be placed into the class.
tz an optional time zone.
cl an optional character vector of classes containing the default classes.
units see difftime.
&#8230; Arguments passed to non-dot name versions.
FUN function to apply, found via match.fun.
dots list of arguments to vectorize over (vectors or lists of strictly positive length, or all of zero length).
MoreArgs a list of other arguments to FUN.
pos an integer.
same character vector of same objects, masking others.
pkg character string naming the package which is masked from or by.
by logical indicating if the masking happens by pkg, or (by = FALSE) from pkg.

Return Value

.getRequiredPackages dan .getRequiredPackages2 mengembalikan tak terlihat(). testPlatformEquivalence mengembalikan TRUE atau FALSE.

Details

Fungsi .subset dan .subset2 pada dasarnya setara dengan operator [ dan [[, kecuali bahwa pengiriman metode tidak dilakukan. Hal ini untuk menghindari proses unclassing yang mahal ketika menerapkan metode default pada suatu objek. Mereka biasanya tidak dipanggil oleh pengguna akhir. Perhatikan bahwa tidak seperti operator, mereka adalah bawaan dan bukan spesial (semua argumen dievaluasi) dan karenanya tidak mengizinkan argumen yang hilang. .getRequiredPackages2 melampirkan semua paket yang disebutkan di bidang Depends: kegagalan menemukan paket adalah kesalahan. Ia juga memeriksa versi paket yang ditemukan pada kolom Depends. .getRequiredPackages adalah pembungkus .getRequiredPackages2 menggunakan file DESCRIPTION. Fungsi .isMethodsDispatchOn() mengembalikan TRUE jika pengiriman metode S4 telah diaktifkan di evaluasi