Skip to content

Commit

Permalink
docs: disable code chunks in MySQL vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
jorainer committed Aug 21, 2024
1 parent 6fc02c4 commit 1055216
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions vignettes/MySQL-backend.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ this would require access to a MySQL server.
Installation of `EnsDb` databases in a MySQL server is straight forward - given
that the user has write access to the server:

```{r eval = FALSE }
```{r, eval = FALSE}
library(ensembldb)
## Load the EnsDb package that should be installed on the MySQL server
library(EnsDb.Hsapiens.v86)
Expand All @@ -45,15 +45,15 @@ edb_mysql <- useMySQL(EnsDb.Hsapiens.v86, host = "localhost",
## Use this EnsDb object
genes(edb_mysql)
```

To use an `EnsDb` in a MySQL server without the need to install the corresponding
R-package, the connection to the database can be passed to the `EnsDb` constructor
function. With the resulting `EnsDb` object annotations can be retrieved from the
MySQL database.

```{r eval = FALSE }
```{r, eval = FALSE}
library(ensembldb)
library(RMariaDB)
Expand All @@ -69,13 +69,12 @@ dbcon <- dbConnect(MariaDB(), host = "localhost", user = "readonly",
pass = "readonly", dbname = "ensdb_hsapiens_v75")
edb <- EnsDb(dbcon)
edb
```


# Session information

```{r sessionInfo }
sessionInfo()
sessionInfo()
```

0 comments on commit 1055216

Please sign in to comment.