{utils} R# Documentation

utils


require(R);

#' The R Utils Package
imports "utils" from "REnv";

The R Utils Package

The R Utils Package



.NET clr function exports
progress_bar

Create a progress bar helper function

tqdm_label

set progress task for current used tqdm wrapped progressbar in for loop

tqdm

Wraps a collection with a progress bar for iteration, providing visual feedback on progress.

install.packages

Install Packages from Repositories or Local Files

Download and install packages from CRAN-like repositories or from local files. This is the main function to install packages. It takes a vector of names and a destination library, downloads the packages from the repositories and installs them. (If the library is omitted it defaults to the first directory in .libPaths(), with a message if there is more than one.) If lib is omitted or is of length one and is not a (group) writable directory, in interactive use the code offers to create a personal library tree (the first element of Sys.getenv("RLIBSUSER")) and install there. Detection of a writable directory is problematic on Windows: see the ‘Note’ section.

For installs from a repository an attempt Is made To install the packages In an order that respects their dependencies. This does assume that all the entries In Lib are On the Default library path For installs (Set by environment variable R_LIBS).

You are advised To run update.packages before install.packages To ensure that any already installed dependencies have their latest versions.

installed.packages

Find Installed Packages

Find (or retrieve) details of all packages installed in the specified libraries. installed.packages scans the ‘DESCRIPTION’ files of each package found along lib.loc and returns a matrix of package names, library paths and version numbers.

The information found Is cached (by library) For the R session And specified fields argument, And updated only If the top-level library directory has been altered, For example by installing Or removing a package. If the cached information becomes confused, it can be refreshed by running installed.packages(noCache = True).

wget

retrieving files using HTTP, HTTPS, FTP and FTPS, the most widely used Internet protocols.

clear

Clears the console buffer and corresponding console window of display information.

sleep

Suspends the current thread for the specified number of seconds.

Return the First or Last Part of an Object Returns the first or last parts of a vector, matrix, table, data frame or function. Since head() and tail() are generic functions, they may also have been extended to other classes.

memory.size

Report on Memory Allocation

memory.size reports the current or maximum memory allocation of the malloc function used in this version of R.

commandline

create commandline string

system

Invoke a System Command

system invokes the OS command specified by command.

workdir

Create a new temporary work directory environment for the code

md5

Vectorized hash/hmac functions

debug

Debug an Expression

apply for debug in Visual Studio, like a script breakpoint

pause

Pause the current console program.

data

Data Sets

Loads specified data sets, or list the available data sets.

system.file

Find Names of R System Files

Finds the full file names of files in packages etc.

description

loading a DESCRIPTION file

now

get current system time

timespan

create the time span value based on the given time ticks

package.skeleton

Create a Skeleton for a New Source Package

package.skeleton automates some of the setup for a new source package. It creates directories, saves functions, data, and R code files to appropriate places, and creates skeleton help files and a ‘Read-and-delete-me’ file describing further steps in packaging.

unzip

Extract or List Zip Archives

Extract files from or list a zip archive.

zip

Create Zip Archives A wrapper for an external zip command to create zip archives.

sendMessage

send task message to the parent node


[Document Index]