How To Read Azure Storage Blob In RStudio To Databricks

To read data from an Azure Blob Storage you can do that in a few steps. If you haven’t already the install RStudio inside Databricks.

First import Spark for R. Then use dataframe read with source and path.

df <- read.df(source= "json", path="/mnt/datalake/my_json/myfile.json")

To output the data you can use head() which shows the first 6 lines of data.