demo                  package:base                  R Documentation

_D_e_m_o_n_s_t_r_a_t_i_o_n_s _o_f _R _f_u_n_c_t_i_o_n_a_l_i_t_y

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

     `demo' is a user-friendly interface to running some demonstration
     R scripts.  `demo()' gives the list of available topics.

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

     demo(topic, device = getOption("device"),
          package = .packages(), lib.loc = .lib.loc,
          character.only = FALSE)

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

   topic: the topic which should be demonstrated.  If omitted, the list
          of available topics is displayed.

  device: the graphics device to be used.

 package: a name or character vector giving the packages to look into
          for data sets.  By default, all packages in the search path
          are used.

 lib.loc: a character vector of directory names of R libraries.
          Defaults to all libraries currently known.  If the default is
          used, the loaded packages are searched before the libraries.

character.only: logical; if `TRUE', use `topic' as character string
          instead of name.

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

     `source' which is called by `demo'.

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

     demo() # for attached packages

     ## All available demos:
     demo(package = .packages(all.available = TRUE))

     demo(lm.glm)


      ch <- "scoping"
      demo(ch, character = TRUE)

