Group: | Information and Control |
See also: | getenv library |
Function: | setenv | |
Description: | setenv sets one of the environment variables (xpl4home, xpl4data, xpl4help, xpl4prog, xpl4backup, format, stringformat, browser, outheadline, outlayerline, outlineno) |
Usage: | setenv (envname, newval) | |
Input: | ||
envname | name of the environment
| |
newval | new value (e.g., name of a directory) |
os (Operating System) system (Internal name of the operating System) build (Internal build number)
xpl4home (Home directory of User)
xpl4outhome (Home directory of User for output)
xpl4nethome (Home directory of XploRe,http://www.xplore-stat.de)
xpl4syshome (Home directory of XploRe defined by administrator)
can NOT be changed by the command setenv, but rather by editing the XploRe.ini file. In this command the backslash is coded as "\\", the newline as "\n" (Unix), "\r\n" (Windows) and the tabulator as "\t".
setenv ("xpl4data", "/user/haerdle/project1/data") setenv ("format", "%10.2f")
data are read from /user/haerdle/project1/data numbers are printed rounded to two digits
setenv ("outheadline", "") x = normal(3,3,3) x
the array is displayed without the standard header "contents of x"
setenv ("outheadline", "") setenv ("outlayerline", "") setenv ("outlineno", "") x = normal(3,3,3) x
the array is displayed without the standard header "contents of x" without the array lineno (e.g. "[1,]", etc.) and without the layer index (e.g."[,,1,1,1,1,1,1]", etc.) Contents of unnamed object [ 1,] "system" "i686-pc-cygwin32" [ 2,] "os" "windows" [ 3,] "build" "4" [12,] "logfile" "xplore.log" [13,] "xpl4nethome" "http://www.xplore-stat.de" [14,] "xpl4syshome" "." [15,] "xpl4netlib" "http://www.xplore-stat.de\\lib" [16,] "xpl4netdata" "http://www.xplore-stat.de\\data" [17,] "xpl4nethelp" "http://www.xplore-stat.de\\help" [18,] "xpl4netdll" "http://www.xplore-stat.de\\dll" [19,] "xpl4syslib" ".\\lib" [20,] "xpl4sysdata" ".\\data" [21,] "xpl4syshelp" ".\\help" [22,] "xpl4sysdll" ".\\dll" [23,] "xpl4home" "E:\\xplore\\xqms" [30,] "xpl4outprog" "E:\\xplore\\xqms" [31,] "xpl4outtemp" "D:\\TEMP" [32,] "xpl4netprog" "" [33,] "xpl4nettemp" "" [34,] "xpl4sysprog" "" [35,] "xpl4systemp" ""
Group: | Information and Control |
See also: | getenv library |