Title: | 'RStudio' Addins for Show Outline of a R Markdown/'LaTeX' Project |
---|---|
Description: | 'RStudio' allows to show and navigate for the outline of a R Markdown file, but not for R Markdown projects with multiple files. For this reason, I have developed several 'RStudio' addins capable of show project outline. Each addin is specialized in showing projects of different types: R Markdown project, 'bookdown' package project and 'LaTeX' project. There is a configuration file that allows you to customize additional searches. |
Authors: | Pedro L. Luque-Calvo [aut, cre]
|
Maintainer: | Pedro L. Luque-Calvo <[email protected]> |
License: | GPL-3 |
Version: | 0.1.6 |
Built: | 2025-03-13 04:16:49 UTC |
Source: | https://github.com/calote/addinsoutline |
Copy configuration file from outline in working directory to search for additional terms in our R Markdown or LaTeX project.
copy_file_config_ini_new(path_to = NULL, overwritefile = TRUE)
copy_file_config_ini_new(path_to = NULL, overwritefile = TRUE)
path_to |
path where the configuration file will be copied |
overwritefile |
logical variable; if |
The name of the configuration file is "addinsOutline_ini.txt".
In the configuration file you can use regular expressions with the help of the functions of the "stringr" package, to perform additional custom searches.
Make a copy of this file to see how new searches are defined.
The following strings serve to distinguish which types of files will be used:
- "rmd": R Markdown files
- "rmdbd": Bookdown files
- "tex": LaTeX files
Copy configuration file from outline in working directory
The function run_addinsOutline_Rmd()
,
run_addinsOutline_Rmd_bookdown()
and
run_addinsOutline_tex()
.
if (interactive()) { library(addinsOutline) copy_file_config_ini_new() }
if (interactive()) { library(addinsOutline) copy_file_config_ini_new() }
Addin for displays outline of an R Markdown project with and without child files.
run_addinsOutline_Rmd()
run_addinsOutline_Rmd()
'RStudio Addin' with browserViewer(). This 'RStudio' addin will show a list of the different sections established in the R Markdown project and clicking on any element shown in the list will cause 'RStudio' to show that section by opening the file that contains it if it was not already open previously.
The function run_addinsOutline_Rmd_bookdown()
and
run_addinsOutline_tex()
.
if (interactive()) { library(addinsOutline) run_addinsOutline_Rmd() }
if (interactive()) { library(addinsOutline) run_addinsOutline_Rmd() }
Addin for displays outline of an bookdown project (R Markdown files in directory project).
run_addinsOutline_Rmd_bookdown()
run_addinsOutline_Rmd_bookdown()
RStudio Addin with browserViewer() This 'RStudio' addin will show a list of the different sections established in the 'bookdown' project (R Markdown files in directory project) and clicking on any element shown in the list will cause 'RStudio' to show that section by opening the file that contains it if it was not already open previously. To open a bookdown project select the file _bookdown.yml or index.Rmd.
The function run_addinsOutline_tex()
and
run_addinsOutline_Rmd()
.
if (interactive()) { library(addinsOutline) run_addinsOutline_Rmd_bookdown() }
if (interactive()) { library(addinsOutline) run_addinsOutline_Rmd_bookdown() }
Addin for displays outline of an LaTeX Project with
and without child files insert with: \input{}
or
\include{}
.
run_addinsOutline_tex()
run_addinsOutline_tex()
Addin 'RStudio' with browserViewer() This 'RStudio' addin will show a list of the different sections established in the LaTeX project and clicking on any element shown in the list will cause 'RStudio' to show that section by opening the file that contains it if it was not already open previously.
The function run_addinsOutline_Rmd()
and
run_addinsOutline_Rmd_bookdown()
.
if (interactive()) { library(addinsOutline) run_addinsOutline_tex() }
if (interactive()) { library(addinsOutline) run_addinsOutline_tex() }