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

