RpadUtil                package:Rpad                R Documentation

_R_p_a_d _u_t_i_l_i_t_i_e_s

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

     Rpad utilities to generate filenames or URL's

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

       RpadURL(filename = "")
       RpadBaseURL(filename = "")
       RpadBaseFile(filename = "")
       RpadIsLocal()

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

filename: the name of a file. 

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

     'RpadURL' returns the URL for the given filename: "./filename" for
     the local version of Rpad and "/Rpad/server/dd????????/filename"
     for the server version. Use this to output HTML links for the
     user.

     'RpadBaseURL' returns the base URL: "filename" for the local
     version and "/Rpad/filename" for the client-server version. Use
     this to point the user to data files or other links on the server
     that is somewhere permanent. (The current R working directory is
     not permanent in the client-server version.)

     'RpadBaseFile' returns the file name relative to the base R
     directory: "filename" for the local version and "../../filename"
     for the client-server version. Use this in R to read in data files
     or save data files somewhere permanent.

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

     Tom Short, EPRI Solutions, Inc., (tshort@eprisolutions.com)

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

     'Rpad', 'RpadHTML'

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

       # make some data
       x <- 1:10
       y2 <- x^3
       save(x, y2, file = RpadBaseFile("testdata.RData"))
       # output a link to the user:
       HTMLon()
       cat("<a href='", RpadBaseURL("testdata.RData"), sep="")
       cat("'>Click</a> to download the test data.")

