Use .R file in data pipeline

NW1000
New Contributor III

In general R pipeline, we can use source("abc.R") file. However, it does not work in Databricks. I got errors: 

source("./abc.R"), but the error say: Error in file(filename, "r", encoding = encoding) : cannot open the connection

How best to build a pipeline with R and .R files? 

Thank you.