convAD                package:PBSadmb                R Documentation

_C_o_n_v_e_r_t _T_P_L _C_o_d_e _t_o _C_P_P _C_o_d_e

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

     Convert code in ''prefix'.tpl' to C++ code in ''prefix'.cpp'.

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

     convAD(prefix, raneff=FALSE, logfile=TRUE, add=FALSE, 
            verbose=TRUE, comp="GCC")

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

  prefix: string name prefix of the ADMB project (e.g., '"vonb"').

  raneff: logical: if 'TRUE', use the random effects model executable
          'tpl2rem.exe', otherwise use the normal model executable
          'tpl2cpp.exe'.

 logfile: logical: if 'TRUE', create a log file of the messages from
          the shell call.

     add: logical: if 'TRUE', append shell call messages to an exsiting
          log file.

 verbose: logical: if 'TRUE', report the shell call an its messages to
          the R console.

    comp: string: compiler to use - "GCC" is only currently supported

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

     This function invokes the ADMB command 'tpl2cpp.exe' or
     'tpl2rem.exe', if 'raneff' is 'FALSE' or 'TRUE' respectively. If
     'logfile=TRUE', any errors will appear in ''prefix'.log'. If
     'verbose=TRUE', they will appear in R console.

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

     Invisibly returns the shell call and its messages.

_N_o_t_e:

     A wrapper function that can be called from a GUI exists as
     '.win.convAD'.

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

     Jon T. Schnute, Pacific Biological Station, Nanaimo BC, Canada

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

     'compAD', 'linkAD', 'makeAD'

