citEntry                package:utils                R Documentation

_W_r_i_t_i_n_g _P_a_c_k_a_g_e _C_I_T_A_T_I_O_N _F_i_l_e_s

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

     The 'CITATION' file of R packages contains an annotated list of
     references that should be used for citing the packages.

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

     citEntry(entry, textVersion, header = NULL, footer = NULL, ...)
     citHeader(...)
     citFooter(...)
     readCitationFile(file, meta = NULL)

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

   entry: a character string with a BibTeX entry type

textVersion: a character string with a text representation of the
          reference

  header: a character string with optional header text

  footer: a character string with optional footer text

    file: a file name

     ...: see details below

    meta: a list of package metadata as obtained by
          'packageDescription', or 'NULL' (default).

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

     The 'CITATION' file of an R package should be placed in the 'inst'
     subdirectory of the package source. The file is an R source file
     and may contain arbitrary R commands including conditionals and
     computations. The file is 'source()'ed by the R parser in a
     temporary environment and all resulting objects of class
     '"citation"' (the return value of 'citEntry') are collected.

     Typically the file will contain zero or more calls to 'citHeader',
     then one or more calls to 'citEntry', and  finally zero or more
     calls to  'citFooter'. 'citHeader' and 'citFooter' are simply
     wrappers to 'paste', and their '...' argument is passed on to
     'paste' as is.

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

     'citEntry' returns an object of class '"citation"',
     'readCitationFile' returns an object of class '"citationList"'.

_E_n_t_r_y _T_y_p_e_s:

     'citEntry' creates '"citation"' objects, which are modeled after
     BibTeX entries. The entry should be a valid BibTeX entry type,
     e.g.,

     _a_r_t_i_c_l_e: An article from a journal or magazine.

     _b_o_o_k: A book with an explicit publisher.

     _i_n_b_o_o_k: A part of a book, which may be a chapter (or section or
          whatever) and/or a range of pages.  

     _i_n_c_o_l_l_e_c_t_i_o_n: A part of a book having its own title.

     _i_n_p_r_o_c_e_e_d_i_n_g_s: An article in a conference proceedings.

     _m_a_n_u_a_l: Technical documentation like a software manual.

     _m_a_s_t_e_r_s_t_h_e_s_i_s: A Master's thesis.

     _m_i_s_c: Use this type when nothing else fits.

     _p_h_d_t_h_e_s_i_s: A PhD thesis.

     _p_r_o_c_e_e_d_i_n_g_s: The proceedings of a conference.

     _t_e_c_h_r_e_p_o_r_t: A report published by a school or other institution,
          usually numbered within a series.

     _u_n_p_u_b_l_i_s_h_e_d: A document having an author and title, but not
          formally published.

_E_n_t_r_y _F_i_e_l_d_s:

     The '...' argument of 'citEntry' can be any number of BibTeX
     fields, including

     _a_d_d_r_e_s_s: The address of the publisher or other type of
          institution.

     _a_u_t_h_o_r: The name(s) of the author(s), either  as a character
          string in the format described in the LaTeX book, or a
          'personList' object.

     _b_o_o_k_t_i_t_l_e: Title of a book, part of which is being cited.

     _c_h_a_p_t_e_r: A chapter (or section or whatever) number.

     _e_d_i_t_o_r: Name(s) of editor(s), same format as 'author'.

     _i_n_s_t_i_t_u_t_i_o_n: The publishing institution of a technical report.

     _j_o_u_r_n_a_l: A journal name.

     _n_o_t_e: Any additional information that can help the reader. The
          first word should be capitalized.

     _n_u_m_b_e_r: The number of a journal, magazine, technical report, or of
          a work in a series.

     _p_a_g_e_s: One or more page numbers or range of numbers.

     _p_u_b_l_i_s_h_e_r: The publisher's name.

     _s_c_h_o_o_l: The name of the school where a thesis was written.

     _s_e_r_i_e_s: The name of a series or set of books.

     _t_i_t_l_e: The work's title.

     _v_o_l_u_m_e: The volume of a journal or multi-volume book.

     _y_e_a_r: The year of publication.

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

     basecit <- system.file("CITATION", package="base")
     source(basecit, echo=TRUE)
     readCitationFile(basecit)

