[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\\STOCKNA 1990.csv TABLENA 2 F:\\DOWNLOAD\\STOCKNA 1996.csv TABLENA 3 F:\\DOWNLOAD\\STOCKNA 1998.csv TABLENA 4 F:\\DOWNLOAD\\STOCKNA 1999.csv TABLENA 5 F:\\DOWNLOAD\\STOCKNA 2000.csv TABLENA 6 F:\\DOWNLOAD\\STOCKNA 2001.csv TABLENA 7 F:\\DOWNLOAD\\STOCKNA 2002.csv TABLENA 8 F:\\DOWNLOAD\\STOCKNA 2003.csv TABLENA 9 F:\\DOWNLOAD\\STOCKNA 2004.csv TABLENA 10 F:\\DOWNLOAD\\STOCKNA 2005.csv TABLENA 11 F:\\DOWNLOAD\\STOCKNA 2006.csv TABLENA 12 F:\\DOWNLOAD\\STOCKNA 2007.csv TABLENA 13 F:\\DOWNLOAD\\STOCKNA 2008.csv TABLENA 14 F:\\DOWNLOAD\\STOCKNA 2009.csv TABLENA 15 F:\\DOWNLOAD\\STOCKNA 2010.csv TABLENA 16 F:\\DOWNLOAD\\STOCKNA test.csv TABLENA 17 F:\\DOWNLOAD\\STOCKNA test1.csv TABLENA 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.