[R] [R-pkgs] r2rtf: Easily Create Production-Ready Rich Text Format (RTF) Table and Figure
Dear all, I am happy to announce that {r2rtf} v0.3.0 is now on CRAN. r2rtf is an R package to create production-ready tables and figures in RTF format. The R package is designed to provide simple “verb” functions that correspond to each component of a table or figure. I hope you find it helpful. Please feel free to reach out with feedback or questions. CRAN: https://cloud.r-project.org/web/packages/r2rtf/index.html Documentation: https://merck.github.io/r2rtf/articles/index.html Thanks, Yilong [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] transfer string to expression
Dear all: when I use parse() there is some problems. Below is an example: b0<-1 b1<-1 x<-1 str2expr<-function(x){eval(parse(text=x))} test1<-"b0+b1*sqrt(x)" test2<-"b0+b1" str2expr(test1) str2expr(test2) it can work well for test2 but not for test1. Could you tell me how to fix this problem or is there other more stable method to transfer an string to expression? best regards Elong [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Using RODBC to read CSV
Hi all, When I use ODBC to manage my datasets, I have a question about sqlFetch below. It seems that my datasets have successfully been identified but the function sqlFetch get an error when I want to read the table. And below is the questionable code. Thanks for your help! > library(RODBC) > stock<-odbcConnect("stock") > sqlTables(stock) TABLE_CAT TABLE_SCHEM TABLE_NAME TABLE_TYPE REMARKS 1 F:\\DOWNLOAD\\STOCK 1990.csv TABLE 2 F:\\DOWNLOAD\\STOCK 1996.csv TABLE 3 F:\\DOWNLOAD\\STOCK 1998.csv TABLE 4 F:\\DOWNLOAD\\STOCK 1999.csv TABLE 5 F:\\DOWNLOAD\\STOCK 2000.csv TABLE 6 F:\\DOWNLOAD\\STOCK 2001.csv TABLE 7 F:\\DOWNLOAD\\STOCK 2002.csv TABLE 8 F:\\DOWNLOAD\\STOCK 2003.csv TABLE 9 F:\\DOWNLOAD\\STOCK 2004.csv TABLE 10 F:\\DOWNLOAD\\STOCK 2005.csv TABLE 11 F:\\DOWNLOAD\\STOCK 2006.csv TABLE 12 F:\\DOWNLOAD\\STOCK 2007.csv TABLE 13 F:\\DOWNLOAD\\STOCK 2008.csv TABLE 14 F:\\DOWNLOAD\\STOCK 2009.csv TABLE 15 F:\\DOWNLOAD\\STOCK 2010.csv TABLE 16 F:\\DOWNLOAD\\STOCK test.csv TABLE 17 F:\\DOWNLOAD\\STOCK test1.csv TABLE > sqlFetch(stock,"test.csv") ´íÎóÓÚodbcTableExists(channel, sqtable) : ¡®test.csv¡¯: table not found on channel [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.