# Create a scss file with some variables
tmp_scss_file <- tempfile(fileext = ".scss")
writeLines("//Some variables\n $color: red;\n $body-bg: #FFF;", tmp_scss_file)
# Search for variables
search_vars(tmp_scss_file)
# Clean up
unlink(tmp_scss_file)
Run the code above in your browser using DataLab