smart_upload | R Documentation |
Upload a list of files to the DB
smart_upload(obj, src = NULL, tablenames = NULL, ...)
obj |
An |
src |
a list of CSV files to upload. If |
tablenames |
a list the same length as |
... |
arguments passed to |
## Not run:
if (require(RMySQL)) {
# must have pre-existing database "fec"
# if not, try
system("mysql -e 'CREATE DATABASE IF NOT EXISTS fec;'")
db <- src_mysql_cnf(dbname = "mtcars")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.