bcStangle              package:RbcBook1              R Documentation

_A _f_u_n_c_t_i_o_n _t_o _e_x_t_r_a_c_t _t_h_e _c_o_d_e _c_h_u_n_k_s _f_r_o_m _t_h_e _b_o_o_k _f_o_r _t_h_e
_o_n_l_i_n_e _s_u_p_p_l_e_m_e_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     A function to extract the code chunks from the book for the online
     supplement.

_U_s_a_g_e:

      bcStangle(files = .RbcBook1Files(), outfile= "bioCSpringer.R")
      tangleToSingleFiles()

_A_r_g_u_m_e_n_t_s:

   files: character vector with filenames of book chapters. Must have
          extension '.Rnw'

 outfile: character of length 1 with the name of the output file.

_D_e_t_a_i_l_s:

     It should suffice to change to the book's top level directory
     (e.g. .../Springer1/trunk/Book1) and run 'bcStangle()'.

     This function is specialized to its one purpose given in the
     title. It is not envisaged that it could be useful beyond, or even
     replace Stangle.

     'tangleToSingleFiles' creates a directory named Rfiles and tangles
      each chapter separately into this directory. You must have the
     current working directory set to the top level directory of the
     book  (Springer/Book1).

_V_a_l_u_e:

     Function is called for its side effects.

_A_u_t_h_o_r(_s):

     Wolfgang Huber <huber@ebi.ac.uk>

_S_e_e _A_l_s_o:

     .RbcBook1Files, Stangle

_E_x_a_m_p_l_e_s:

       ## bcStangle()

