The R Project SVN R

Rev

Rev 59039 | Rev 74067 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61168
Line 59... Line 59...
59
  \code{\link{hexmode}}, \code{\link{sprintf}} for other options in
59
  \code{\link{hexmode}}, \code{\link{sprintf}} for other options in
60
  converting integers to octal, \code{\link{strtoi}} to convert octal
60
  converting integers to octal, \code{\link{strtoi}} to convert octal
61
  strings to integers.
61
  strings to integers.
62
}
62
}
63
\examples{
63
\examples{
64
(on <- as.octmode(c(16,32, 127:129))) # "020" "040" "177" "200" "201"
64
(on <- as.octmode(c(16, 32, 127:129))) # "020" "040" "177" "200" "201"
65
unclass(on[3:4]) # subsetting
65
unclass(on[3:4]) # subsetting
66
 
66
 
67
## manipulate file modes
67
## manipulate file modes
68
fmode <- as.octmode("170")
68
fmode <- as.octmode("170")
69
(fmode | "644") & "755"
69
(fmode | "644") & "755"