if (FALSE) {
# establish the connection to the database
rdbms_login <- login(
from = "mysql-rfam-public.ebi.ac.uk",
type = "mysql",
user_name = "rfamro",
password = "",
driver_name = "",
db_name = "Rfam",
port = 4497
)
# import data where query parameters are specified as a list
authors_list <- read_rdbms(
login = rdbms_login,
query = list(table = "author", fields = NULL, filter = NULL)
)
# import data where query parameters is within an SQL query
authors_list <- read_rdbms(
login = rdbms_login,
query = "select * from author"
)
}
Run the code above in your browser using DataLab