使用RStudio自动生成Shiny应用程序功能的文档 [英] Automatic documentations of functions for Shiny app using RStudio

查看:230
本文介绍了使用RStudio自动生成Shiny应用程序功能的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在开发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应用程序功能的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆