Examples of RmdTemplate


Examples of org.rstudio.studio.client.rmarkdown.model.RmdTemplate

         List<String> outFormats = getOutputFormats(tree);
         String outFormat = outFormats == null ?
               RmdOutputFormat.OUTPUT_HTML_DOCUMENT :
               outFormats.get(0);
        
         RmdTemplate template = getTemplateForFormat(outFormat);
         if (template == null)
            return null;
        
         // If this format produces HTML and is marked as Shiny, treat it as
         // a Shiny format
         if (template.getFormat(outFormat).getExtension().equals("html") &&
             tree.getKeyValue(RmdFrontMatter.RUNTIME_KEY).equals(
                       RmdFrontMatter.SHINY_RUNTIME))
         {
            isShiny = true;
         }
View Full Code Here

Examples of org.rstudio.studio.client.rmarkdown.model.RmdTemplate

      // If the format list doesn't already contain the given format, add it
      // to the list and transfer any applicable options
      if (!JsArrayUtil.jsArrayStringContains(frontMatter.getFormatList(),
                                             format))
      {
         RmdTemplate template = getTemplateForFormat(format);
         RmdFrontMatterOutputOptions opts = RmdFrontMatterOutputOptions.create();
         if (template != null)
         {
            opts = transferOptions(frontMatter, template, format);
         }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.