问题描述
目前,我正在开发Shiny应用程序,并达到了比我预期更多的功能.我计划使用testthat
开始自动测试,并且希望使用roxygen2
记录我的功能.
I am developing a Shiny app at the moment and getting to a point with more functions than I expected. I plan to start automated testing with testthat
and I would love to document my functions with roxygen2
.
由于我使用的是RStudio,因此我启动了一个新的闪亮应用程序项目.现在我想知道,因为我想完成文档和测试,是否应该在RStudio中启动 package 来获取所有devtools
函数.
Since I am using RStudio, I started a new shiny app project. 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.
我想知道如何正确地记录功能,并像build
中那样对示例进行测试.加上使用testthat
功能.我如何建立这样的项目?
I am wondering, how to get the functions documented properly and like in the build
, to test the examples. Plus using the testthat
functions. 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.
这篇关于使用RStudio自动生成Shiny应用程序功能的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!