protected void writeScriptHeader(Writer writer, Engine engine) throws IOException {
        writer.append("#Code automatically generated with " + FuzzyLite.LIBRARY + ".\n\n");
        writer.append("library(ggplot2);\n");
        writer.append("\n");
        writer.append("engine.name = \"" + engine.getName() + "\"\n");
        if (!Op.isEmpty(engine.getDescription())) {
            writer.append(String.format(
                    "engine.description = \"%s\"\n", engine.getDescription()));
        }
        writer.append("engine.fll = \"" + new FllExporter().toString(engine) + "\"\n\n");
    }
protected void writeScriptHeader ( Writer writer , Engine engine ) throws IOException { writer . append ( "#Code automatically generated with " + FuzzyLite . LIBRARY + ".\n\n" ) ; writer . append ( "library(ggplot2);\n" ) ; writer . append ( "\n" ) ; writer . append ( "engine.name = \"" + engine . getName ( ) + "\"\n" ) ; if ( ! Op . isEmpty ( engine . getDescription ( ) ) ) { writer . append ( String . format ( "engine.description = \"%s\"\n" , engine . getDescription ( ) ) ) ; } writer . append ( "engine.fll = \"" + new FllExporter ( ) . toString ( engine ) + "\"\n\n" ) ; }
Writes the header of the R script (e.g., import libraries)

@param writer is the output where the header will be written to
@param engine is the engine to export
@throws IOException if any error occurs upon writing on the writer