Package: R.rsp 0.46.0

R.rsp: Dynamic Generation of Scientific Reports

The RSP markup language makes any text-based document come alive. RSP provides a powerful markup for controlling the content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr documents (and more), e.g. 'Today's date is <%=Sys.Date()%>'. Contrary to many other literate programming languages, with RSP it is straightforward to loop over mixtures of code and text sections, e.g. in month-by-month summaries. RSP has also several preprocessing directives for incorporating static and dynamic contents of external files (local or online) among other things. Functions rstring() and rcat() make it easy to process RSP strings, rsource() sources an RSP file as it was an R script, while rfile() compiles it (even online) into its final output format, e.g. rfile('report.tex.rsp') generates 'report.pdf' and rfile('report.md.rsp') generates 'report.html'. RSP is ideal for self-contained scientific reports and R package vignettes. It's easy to use - if you know how to write an R script, you'll be up and running within minutes.

Authors:Henrik Bengtsson [aut, cre, cph]

R.rsp_0.46.0.tar.gz
R.rsp_0.46.0.zip(r-4.5)R.rsp_0.46.0.zip(r-4.4)R.rsp_0.46.0.zip(r-4.3)
R.rsp_0.46.0.tgz(r-4.4-any)R.rsp_0.46.0.tgz(r-4.3-any)
R.rsp_0.46.0.tar.gz(r-4.5-noble)R.rsp_0.46.0.tar.gz(r-4.4-noble)
R.rsp_0.46.0.tgz(r-4.4-emscripten)R.rsp_0.46.0.tgz(r-4.3-emscripten)
R.rsp.pdf |R.rsp.html
R.rsp/json (API)
NEWS

# Install 'R.rsp' in R:
install.packages('R.rsp', repos = c('https://henrikbengtsson.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/henrikbengtsson/r.rsp/issues

On CRAN:

documentmarkupreportreproducibilityscience

190 exports 31 stars 3.61 score 5 dependencies 8 dependents 36 scripts 13.6k downloads

Last updated 7 months agofrom:82055c2afc (on master). Checks:ERROR: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesFAILAug 15 2024
R-4.5-winWARNINGAug 15 2024
R-4.5-linuxWARNINGAug 15 2024
R-4.4-winWARNINGAug 15 2024
R-4.4-macWARNINGAug 15 2024
R-4.3-winWARNINGAug 15 2024
R-4.3-macWARNINGAug 15 2024

Exports:appendRootPathsasisTangleasisWeaveasRspStringbrowseRspbuildNonSweaveTexToPdfbuildNonSweaveVignettebuildNonSweaveVignettesbuildPkgIndexHtmlcapabilitiesOfcompileAsciiDoccompileAsciiDocNowebcompileKnitrcompileLaTeXcompileMarkdowncompileRnwcompileRspcompileSweavedropEmptyTextdvipsescapeescapeRspContentescapeRspTagsexprToCodeextensionToIMTFileRspResponsefindAsciiDocfindPandocfindProcessorflattengetCodegetCommentgetCompleteCodegetConfiggetContentgetContentLengthgetContentTypegetContextPathgetCountgetDateHeadergetDefaultFilenamePatterngetEchogetFilegetFileSizegetHeadergetHttpRequestgetIncludegetItemgetLanguagegetMetadatagetNameContentDefaultAttributesgetNewlinegetOutputgetParametergetParametersgetPortgetProtocolgetQueryStringgetRealPathgetRemoteAddressgetRemoteHostgetRemoteUsergetRequestUrigetRequestUrlgetRootPathsgetSchemegetServerNamegetServerPortgetServletPathgetSuffixSpecsgetTypegetVerbatimgetWraphasAttributehasParameterhasProcessorHtmlRspLanguageHttpDaemonHttpDaemonRspResponseHttpRequestindexOfNonQuotedinsertRootPathsisCapableOfisStartedlemakeSourceCodemergeTextsnbrOfLinesnbrOfParametersopenUrlparseCodeparseCutNPasteDirectivesparseDirectiveparseDocumentparseExpressionparseIfElseDirectivesparseInternetMediaTypeparseRawparseVignetteparseVignettespreprocessprocessprocessRspps2pdfR.rsprargsrcatrcleanrcodercompilerequireAttributesrestartrfileRRspPackagersourceRspCodeRspCodeChunkRspCommentRspConstructRspCopyDirectiveRspCutDirectiveRspDirectiveRspDocumentRspElseDirectiveRspEndcopyDirectiveRspEndcutDirectiveRspEndifDirectiveRspErrorDirectiveRspEvalDirectiveRspExceptionRspExpressionRspFileProductRspIfdefDirectiveRspIfDirectiveRspIfeqDirectiveRspIfndefDirectiveRspIfneqDirectiveRspIncludeDirectiveRspIntegerDirectiveRspLanguageRspLogicalDirectiveRspMetaDirectiveRspNumericDirectiveRspObjectRspPageRspPageDirectiveRspParseExceptionRspParserRspPasteDirectiveRspPreprocessingExceptionRspProductRspResponseRspRSourceCodeRspRSourceCodeFactoryRspShSourceCodeRspShSourceCodeFactoryRspSourceCodeRspSourceCodeFactoryRspStringRspStringDirectiveRspStringProductrspTangleRspTextRspUnknownDirectiveRspUnparsedDirectiveRspUnparsedExpressionRspVariableDirectiveRspVoidrspWeaverstringsetAttributesetAttributessetCountsetMetadatasetRootPathssourceTclsourceWithTrimsplitUrlstartHelptangleterminatetidytoRtoSourceCodetrimNonTexttypeOfRnwunescapeRspTagsviewwriteResponsewstring

Dependencies:digestR.cacheR.methodsS3R.ooR.utils

Readme and manuals

Help Manual

Help pageTopics
Package R.rspR.rsp-package R.rsp
Evaluates an RSP string and outputs the generated stringrcat rcat.default rcat.expression rcat.function rcat.RspDocument rcat.RspRSourceCode rcat.RspString rsource rsource.default rsource.expression rsource.function rsource.RspDocument rsource.RspRSourceCode rsource.RspString
Evaluates and postprocesses an RSP document and outputs the final RSP document filerfile rfile.default rfile.expression rfile.function rfile.RspDocument rfile.RspRSourceCode rfile.RspShSourceCode rfile.RspString
Evaluates an RSP string and returns the generated stringrstring rstring.default rstring.expression rstring.function rstring.RspDocument rstring.RspSourceCode rstring.RspString