Automate code transfer from .rmd file to mod_*_utils.R #853
Unanswered
toufikswar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
I have read the Engineering Shiny Apps Book you wrote, great book. I learnt a lot from it. I have started following the best practices, one of them being the .rmd first approach.
I wrote my functions in an .rmd file (in the vignette folder). As specified in the book, it is indeed a good approach since it pushes me to document my code at an early stage.
When I am done with my code, I copy/paste from the .rmd to the module where I want to include it (e.g. mod_*_utils.R). This approach is quite manual, and I have to be careful to always edit the function in the .rmd first, and I often end up with 2 versions if I am not careful.
Is there a way to automate the transfer of my code from the .rmd to the mod_*_utils.R file? For example, a command that would allow me to work in the .rmd, and transfer that code to a specific location somewhere in my project automatically?
Or do you have other ideas or ways of working to handle that situation?
Thanks :)
Toufik.
Beta Was this translation helpful? Give feedback.
All reactions