You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 19, 2021. It is now read-only.
Using the MySQL command line tool to connect to the proxy
Querying in R with RMySQL
It would be awesome to handle all of this seamlessly within R.
From what I understand about each step, working with the Go tool will be the most interesting. More recent versions of Go have cgo. It might be possible to use this for creating R extensions with Go.
https://romain.rbind.io/blog/2017/05/14/calling-go-from-r/ is relevant to this, however the problem in my mind isn't how you call the go shared library from R but how you distribute the package. CRAN is not going to provide go binaries so you would need users to have the go compiler installed, which most R users will not have.
Possibly related: rstudio/blogdown depends on a Go binary and just uses a user-called function to grab/ install the correct binary for your system (from a GitHub release page for those binaries)
@jimhester Thanks for the heads up on the Romain blog post. I was working through the exact same thing, and it's so great to see that this is really possible!
This blog post details the process for connecting to a Google Cloud SQL instance:
https://cloud.google.com/blog/big-data/2017/03/google-cloud-platform-for-data-scientists-using-r-with-google-cloud-sql-for-mysql
In short, it involves:
It would be awesome to handle all of this seamlessly within R.
From what I understand about each step, working with the Go tool will be the most interesting. More recent versions of Go have cgo. It might be possible to use this for creating R extensions with Go.
https://golang.org/cmd/cgo/
(An example of combining C and Go)
http://blog.ralch.com/tutorial/golang-sharing-libraries/
At the very least, there's some other examples of doing something like this in Ruby.
http://blog.paracode.com/2015/08/28/ruby-and-go-sitting-in-a-tree/
https://github.com/jondot/scatter
I don't nearly enough about the Ruby (or R) internals to know if this is applicable, but I think it'd be pretty cool if we could get this to work!
The text was updated successfully, but these errors were encountered: