powered by
Passes content of file_name into V8 console and converts it using LESS engine to CSS. The converted CSS is saved into output_folder under original name. Only the extension is switched to css.
convert_file(base_path, file_name, output_folder = tempdir())
Base path to file to be converted
Path relative to base_path leading to file to be converted
base_path
Output path where converted file should be placed. File is placed to tempdir by default
tempdir
Full path to created file with converted CSS file
# NOT RUN { path_to_less_files <- system.file("extdata", package="rless") convert_file(path_to_less_files, "example.less") convert_file(path_to_less_files, "example.less", tempdir()) # }
Run the code above in your browser using DataLab