Learn R Programming

RcppOctave (version 0.18.1)

o_addpath: Manipulating Octave Search Path

Description

Adds a directory at the beginning of Octave search path.

o_inpath tells if a directory or files are in Octave path.

Usage

o_addpath(DIR1, ..., OPTION = "-begin")

o_inpath(...)

Arguments

DIR1
path specification to add to Octave search path. See section Octave Documentation.
...
other path specifications
OPTION
option that specifies how the path should be added. Possible values are: '-begin', 0, '-end', 1. See section Octave Documentation.

Value

  • returns invisibly the old value of search path.

Octave Documentation for <em>addpath</em>

[results=rd,stage=render]{if( .Platform$OS.type != 'windows' || .Platform$r_arch != 'x64' ) RcppOctave::o_help(addpath, format='rd')}

[Generated from Octave-RcppOctave::o_version() on Sys.time()]

# roxygen generated flag options(R_CHECK_RUNNING_EXAMPLES_=TRUE)

# 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())

Other Octave_files: o_source

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.