简体   繁体   English

使用RStudio自动生成Shiny应用程序功能的文档

[英]Automatic documentations of functions for Shiny app using RStudio

I am developing a Shiny app at the moment and getting to a point with more functions than I expected. 目前,我正在开发一个Shiny应用程序,并且其功能超出了我的预期。 I plan to start automated testing with testthat and I would love to document my functions with roxygen2 . 我计划从testthat开始自动化测试,我很想用roxygen2记录我的功能。

Since I am using RStudio, I started a new shiny app project. 由于我正在使用RStudio,因此我启动了一个新的闪亮应用程序项目。 Now I am wondering, since I want the documentation and testing done, if I should instead start a package in RStudio to get all the devtools functions. 现在我想知道,因为我想完成文档和测试,是否应该代替而在RStudio中启动一个软件包来获取所有devtools函数。

I am wondering, how to get the functions documented properly and like in the build , to test the examples. 我想知道如何正确记录功能并像在build一样对功能进行测试。 Plus using the testthat functions. 加上使用testthat功能。 How can I set up a project like this? 我如何建立这样的项目?

Since I found now a workflow which works for me, I described this on a different question. 由于我现在找到了适合我的工作流程,因此我在另一个问题上对此进行了描述。

developing shiny app as a package and deploying it to shiny server 将闪亮的应用程序作为软件包开发,并将其部署到闪亮的服务器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM