databrickslabs / brickster

R Toolkit for Databricks
https://databrickslabs.github.io/brickster/
Apache License 2.0
49 stars 8 forks source link

Adding `%sh` support + knitr engine shorthand #35

Closed zacdav-db closed 1 year ago

zacdav-db commented 1 year ago

Can now use %sh magic in rmarkdown:

This is achieved thanks to %%sh in a python context.

    ```{databricks_sh}
    ls -la /

Additionally can use new `db_{r/py/scala/sh}` shorthand
```r
    ```{db_r}
    library(sparklyr)
    sc <- spark_connect(method = "databricks")