I am using R studio to do analysis with data. Able to install RMYSQL libraries and connect to DB but when I am trying write select query I am unable to get the data. I had written script like below
> mydb <- dbConnect(MySQL(), user='user', password='password',
dbname='dbname', host='host')
> rs <- dbSendQuery(mydb, "select * from tableName")
> data <- fetch(rs, n=-1)
> dbHasCompleted(rs)
Getting the below error
> rs <- dbSendQuery(mydb, "select * from tableName")
> data <- fetch(rs, n=-1)
Error in (function (env, objName) :
could not find function "object.size"
Error in (function (env, objName) :
could not find function "object.size"
Can any one help to get the data from DB