-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patho_addpath.Rd
68 lines (52 loc) · 1.73 KB
/
o_addpath.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/base-functions.R
\name{o_addpath}
\alias{o_addpath}
\alias{o_inpath}
\title{Manipulating Octave Search Path}
\usage{
o_addpath(DIR1, ..., OPTION = "-begin")
o_inpath(...)
}
\arguments{
\item{DIR1}{path specification to add to Octave search path.
See section \emph{Octave Documentation}.}
\item{...}{other path specifications}
\item{OPTION}{option that specifies how the path should be added.
Possible values are: \code{'-begin', 0, '-end', 1}.
See section \emph{Octave Documentation}.}
}
\value{
returns invisibly the old value of search path.
}
\description{
Adds a directory at the beginning of Octave search path.
\code{o_inpath} tells if a directory or files are in Octave path.
}
\details{
The .oct files present in directories from the search path are looked up
when an object or function is requested but not loaded in the current session.
The files are watched and automatically reloaded in case modification.
}
\section{Octave Documentation for \emph{addpath}}{
\Sexpr[results=rd,stage=render]{if( .Platform$OS.type != 'windows' || .Platform$r_arch != 'x64' ) RcppOctave::o_help(addpath, format='rd')}
\emph{[Generated from Octave-\Sexpr{RcppOctave::o_version()} on \Sexpr{Sys.time()}]}
}
\examples{
\dontshow{
options(R_CHECK_RUNNING_EXAMPLES_=TRUE) ## roxygen generated flag
}
# call an undefined function
try(.CallOctave('fun1'))
# add to the path a directory with a .oct file that contains a definition for 'fun1'
o_addpath(system.file('scripts', package='RcppOctave'))
# re-call the function
#.CallOctave('fun1')
# change the .oct file
o_addpath(tempdir())
o_inpath(tempdir())
o_inpath(tempfile())
}
\seealso{
Other Octave_files: \code{\link{o_source}}
}