Learn R Programming

this.path (version 2.2.0)

this.path-defunct: Defunct Functions in Package 'this.path'

Description

The functions or variables listed here are no longer part of this.path as they are no longer needed.

Usage

# Defunct in 1.1.0
this.path2(...)
this.dir2(...)
this.dir3(...)
normalized.shFILE(default, else.)

# Defunct in 1.3.0 as.rel.path(path) as.relative.path(path)

# Defunct in 1.4.0 local.path(verbose = getOption("verbose"), original = FALSE, for.msg = FALSE, contents = FALSE, default, else.) Sys.path() Sys.dir()

# Defunct in 2.0.0 reset.this.proj() set.this.path.jupyter(...) inside.source(file, path.only = FALSE, character.only = path.only, file.only = path.only, conv2utf8 = FALSE, allow.blank.string = FALSE, allow.clipboard = !file.only, allow.stdin = !file.only, allow.url = !file.only, allow.file.uri = !path.only, allow.unz = !path.only, allow.pipe = !file.only, allow.terminal = !file.only, allow.textConnection = !file.only, allow.rawConnection = !file.only, allow.sockconn = !file.only, allow.servsockconn = !file.only, allow.customConnection = !file.only, ignore.all = FALSE, ignore.blank.string = ignore.all, ignore.clipboard = ignore.all, ignore.stdin = ignore.all, ignore.url = ignore.all, ignore.file.uri = ignore.all, Function = NULL, ofile) set.this.path(file, path.only = FALSE, character.only = path.only, file.only = path.only, conv2utf8 = FALSE, allow.blank.string = FALSE, allow.clipboard = !file.only, allow.stdin = !file.only, allow.url = !file.only, allow.file.uri = !path.only, allow.unz = !path.only, allow.pipe = !file.only, allow.terminal = !file.only, allow.textConnection = !file.only, allow.rawConnection = !file.only, allow.sockconn = !file.only, allow.servsockconn = !file.only, allow.customConnection = !file.only, ignore.all = FALSE, ignore.blank.string = ignore.all, ignore.clipboard = ignore.all, ignore.stdin = ignore.all, ignore.url = ignore.all, ignore.file.uri = ignore.all, Function = NULL, ofile) unset.this.path()

Arguments

Details

this.path2(), this.dir2(), and this.dir3() were used before sys.path() and sys.dir() were given an argument default. Should be replaced by sys.path(default = NULL), sys.dir(default = NULL), and sys.dir(default = getwd()) , respectively.

normalized.shFILE() was used before shFILE() was given an argument original. Should be replaced by shFILE().

as.rel.path() and as.relative.path() were poorly chosen names given their functionality. Should be replaced by rel2here().

local.path() was used when it called a different C function than sys.path(). Should be replaced by sys.path(local = TRUE).

Sys.path() and Sys.dir() are worse names for sys.path() and sys.dir(). Functions that start with "Sys" are related to the operating system, while functions that start with "sys" are related to the R system; the call stack. These new names are much better.

reset.this.proj() was used when this.proj() was the only project related function. Now that sys.proj() and env.proj() exist, the function was renamed to reset.proj().

this.path() was renamed to sys.path(), so set.this.path.jupyter(), set.this.path(), and unset.this.path() were accordingly renamed to set.jupyter.path(), set.sys.path(), and unset.sys.path(). Since set.this.path() was already being made defunct, inside.source() was also made defunct.

See Also