octmode                 package:base                 R Documentation

_D_i_s_p_l_a_y _N_u_m_b_e_r_s _i_n _O_c_t_a_l

_D_e_s_c_r_i_p_t_i_o_n:

     Convert or print integers in octal format, with as many digits as
     are needed to display the largest, using leading zeroes as
     necessary.

_U_s_a_g_e:

     ## S3 method for class 'octmode':
     as.character(x, ...)

     ## S3 method for class 'octmode':
     format(x, ...)

     ## S3 method for class 'octmode':
     print(x, ...)

_A_r_g_u_m_e_n_t_s:

       x: An object inheriting from class '"octmode"'.

     ...: further arguments passed to or from other methods.

_D_e_t_a_i_l_s:

     Class '"octmode"' consists of integer vectors with that class
     attribute, used merely to ensure that they are printed in octal
     notation, specifically for Unix-like file permissions such as
     '755'.  Subsetting ('[') works too.

_S_e_e _A_l_s_o:

     These are auxiliary functions for 'file.info'.

     'hexmode'

_E_x_a_m_p_l_e_s:

     (on <- structure(c(16,32, 127:129),  class = "octmode")) #-> print.*()
     ##-> "020" "040" "177" "200" "201"
     unclass(on[3:4]) # subsetting

