* using log directory 'd:/Rcompile/CRANpkg/local/2.14/Rdpack.Rcheck' * using R version 2.14.2 (2012-02-29) * using platform: i386-pc-mingw32 (32-bit) * using session charset: ISO8859-1 * checking for file 'Rdpack/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'Rdpack' version '0.3-8' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking whether package 'Rdpack' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking for unstated dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE .rdo_replace_at: no visible global function definition for 'paste0' Rdo2Rdf: no visible global function definition for 'paste0' compare_usage1: no visible global function definition for 'paste0' deparse_usage1: no visible global function definition for 'paste0' get_usage: no visible global function definition for 'paste0' parse_1usage_text : f: no visible global function definition for 'paste0' parse_1usage_text: no visible global function definition for 'paste0' * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... ERROR Running examples in 'Rdpack-Ex.R' failed The error most likely occurred in: > ### Name: Rdapply > ### Title: Apply a function over an Rd object > ### Aliases: Rdapply rattr Rdtagapply > ### Keywords: RdoProgramming > > ### ** Examples > > # create an Rd object for the sake of example > u1 <- list_Rd(name = "Dummyname", alias = "dummyfun", + title = "Dummy title", description = "Dummy description", + usage = "dummyfun(x)", + value = "numeric vector", + author = "A. Author", + examples = "\na <- matrix(1:6,nrow=2)\na %*% t(a)\nt(a) %*% a", + Rd_class=TRUE ) > > # correct R code for examples but wrong for saving in Rd files > Rdo_show(u1) _D_u_m_m_y _t_i_t_l_e _D_e_s_c_r_i_p_t_i_o_n: Dummy description _U_s_a_g_e: dummyfun(x) _V_a_l_u_e: numeric vector _A_u_t_h_o_r(_s): A. Author _E_x_a_m_p_l_e_s: a <- matrix(1:6,nrow=2) a %*% t(a) t(a) %*% a > > # escape percents everywhere except in comments > # (actually, .anypercent escapes only unescaped percents) > rdo <- Rdapply(u1, Rdpack:::.anypercent, classes = "character", how = "replace") > > # syntactically wrong R code for examples but ok for saving in Rd files > Rdo_show(rdo) _D_u_m_m_y _t_i_t_l_e _D_e_s_c_r_i_p_t_i_o_n: Dummy description _U_s_a_g_e: dummyfun(x) _V_a_l_u_e: numeric vector _A_u_t_h_o_r(_s): A. Author _E_x_a_m_p_l_e_s: a <- matrix(1:6,nrow=2) a \%*\% t(a) t(a) \%*\% a > > > # Rdo2Rdf does this by default for examples and other R code, > # so code can be kept syntactically correct while processing. > # (reprompt() takes care of this too as it uses Rdo2Rdf for saving) > > fn <- tempfile("u1", fileext="Rd") > Rdo2Rdf(u1, file = fn) Error in Rdo2Rdf(u1, file = fn) : could not find function "paste0" Execution halted