1 /* 2 * SessionRMarkdown.hpp 3 * 4 * Copyright (C) 2021 by RStudio, PBC 5 * 6 * Unless you have received this program directly from RStudio pursuant 7 * to the terms of a commercial license agreement with RStudio, then 8 * this program is licensed to you under the terms of version 3 of the 9 * GNU Affero General Public License. This program is distributed WITHOUT 10 * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, 11 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the 12 * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. 13 * 14 */ 15 16 #ifndef SESSION_SESSION_RMARKDOWN_HPP 17 #define SESSION_SESSION_RMARKDOWN_HPP 18 19 #include <string> 20 21 #define kRenderTypeStatic 0 22 #define kRenderTypeShiny 1 23 #define kRenderTypeNotebook 2 24 25 namespace rstudio { 26 namespace core { 27 class Error; 28 } 29 } 30 31 namespace rstudio { 32 namespace session { 33 namespace modules { 34 namespace rmarkdown { 35 36 bool rmarkdownPackageAvailable(); 37 38 bool isSiteProject(const std::string& site); 39 40 bool knitParamsAvailable(); 41 42 bool knitWorkingDirAvailable(); 43 44 bool pptAvailable(); 45 46 core::Error evaluateRmdParams(const std::string& docId); 47 48 core::Error initialize(); 49 50 } // namespace rmarkdown 51 } // namepace handlers 52 } // namespace session 53 } // namespace rstudio 54 55 #endif // SESSION_SESSION_RMARKDOWN_HPP 56