Skip to content

Commit

Permalink
re design site
Browse files Browse the repository at this point in the history
  • Loading branch information
ines-gimeno-molina committed Nov 15, 2024
1 parent d3f4197 commit 2e8e815
Show file tree
Hide file tree
Showing 34 changed files with 67 additions and 85 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/coverage.yml

This file was deleted.

2 changes: 1 addition & 1 deletion R/ActivityTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

#' @title Activity Table class definition
#' @title Class that defines the Activity Table in the Generic Report
#'
#' @description This R6 class relates to the activity table in the generic report
#' that documents the person who perfomed the activity and the person who validated
Expand Down
4 changes: 2 additions & 2 deletions R/ChangelogTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

#' @title Changelog Table Row class definition
#' @title Class that defines the Changelog Table Row Table in the Generic Report
#'
#' @description This R6 class controls one row of the Changelog table that documents
#' the date, version, reason and what changed in the update on the document.
Expand Down Expand Up @@ -121,7 +121,7 @@ ChangelogTableRow <- R6::R6Class(
)
)

#' @title Changelog Table class definition
#' @title Class that defines the Changelog Table in the Generic Report
#'
#' @description This R6 class controls one row of the Changelog table that documents
#' the date, version, reason and what changed in the update on the document.
Expand Down
2 changes: 1 addition & 1 deletion R/ReplaceOutputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

#' @title Replace Outputs in a word document
#' @title Class that defines the Replace Outputs
#'
#' @description This R6 class allows to, given a template word document and a list
#' of outputs, to add them at the given location in the text. It automates the
Expand Down
4 changes: 2 additions & 2 deletions R/SignaturesTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

#' @title Signatures Table Row class definition
#' @title Class that defines the Signatures Table Row in the Generic Report
#'
#' @description This R6 class controls one row of the Signatures table that documents
#' the date, version, reason and what changed in the update on the document.
Expand Down Expand Up @@ -95,7 +95,7 @@ SignaturesTableRow <- R6::R6Class(
)
)

#' @title Signatures Table class definition
#' @title Class that defines the Signatures Table in the Generic Report
#'
#' @description This R6 class controls one row of the Signatures table that documents
#' the date, version, reason and what changed in the update on the document.
Expand Down
2 changes: 1 addition & 1 deletion R/TitlePage.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

#' @title Title page class definition
#' @title Class that defines the Title Page in the Generic Report
#'
#' @description This R6 class relates to the Title Page in a report that adds all
#' the required fields of the Generic Report Title Page
Expand Down
25 changes: 25 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#'
#' @import officer
#' @importFrom magrittr `%>%`
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -68,6 +70,8 @@ replace_text <- function(doc, old_value, new_value) {
#' @import checkmate
#' @import officer
#' @importFrom magrittr `%>%`
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -130,6 +134,8 @@ find_and_delete_output = function(template_docx,
#'
#' @import flextable
#' @importFrom magrittr `%>%`
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -189,6 +195,8 @@ table_styling <- function(flex_table,
#' character to ensure proper escaping.
#'
#' @return escaped caption
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand All @@ -213,6 +221,8 @@ escape_caption <- function(caption) {
#' @import utils
#' @import stats
#' @importFrom magrittr `%>%`
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -254,6 +264,8 @@ change_table <- function(template_doc,
#' @import tools
#' @import magick
#' @importFrom magrittr `%>%`
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -298,6 +310,8 @@ change_figure <- function(template_doc,
#' @param doc_final_path Location to save
#'
#' @import officer
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand All @@ -316,6 +330,8 @@ save_updated_document <- function(document,
#' @return formatted version "_v00", "_v02", _v13"
#'
#' @import checkmate
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -345,6 +361,8 @@ version_number <- function(version) {
#' path could be and its associated source path text
#'
#' @import xml2
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -404,6 +422,8 @@ cursor_reach_list <- function(x, keyword) {
#'
#' @param yaml_file List. Already read yaml file to be checked for duplicates
#' @import dplyr
#'
#' @keywords internal
#'
search_for_duplicates = function(yaml_file) {

Expand Down Expand Up @@ -456,6 +476,8 @@ search_for_duplicates = function(yaml_file) {
#'
#' @return List figure_table_captions_sources contaning the figure_table_captions
#' and its corresponding sources paths
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -513,6 +535,7 @@ extract_figure_table_captions = function(doc_path) {
#'
#' @return updated caption without Figure or Table number
#'
#' @keywords internal
#' @examples
#' \dontrun{
#' example_caption <-
Expand Down Expand Up @@ -579,6 +602,8 @@ remove_fig_table_part = function(caption) {
#'
#' @import yaml
#' @import stringr
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down
6 changes: 6 additions & 0 deletions R/utils_checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#' @param date_format String. Expected date format. Default is dd-Mmm-yyyy.
#'
#' @return the original date str if matches conditions, FALSE if not
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand All @@ -54,6 +56,8 @@ check_string_is_date <- function(date_str, date_format = "%d-%b-%Y") {
#'
#' @return the original date str if matches conditions, FALSE if not
#' @import checkmate
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand All @@ -72,6 +76,8 @@ check_name <- function(name_str){
#' @param variable object to check
#'
#' @return the variable if matches conditions, error if not
#'
#' @keywords internal
#'
#' @examples
#' \dontrun{
Expand Down
2 changes: 2 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ knitr::opts_chunk$set(

# rdocx

# rdocx <img src="man/figures/hex-rdocx.png" align="right" width="80" alt="rdocx website" /></a>

<!-- badges: start -->
[![R-CMD-check.yaml](https://github.com/Novartis/rdocx/actions/workflows/check_package.yml/badge.svg)](https://github.com/Novartis/rdocx/actions/workflows/check_package.yml)
[![pkgdown](https://github.com/Novartis/rdocx/actions/workflows/pkgdown.yml/badge.svg)](https://github.com/Novartis/rdocx/actions/workflows/pkgdown.yml)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# rdocx

# rdocx <img src="man/figures/hex-rdocx.png" align="right" width="80" alt="rdocx website" /></a>

<!-- badges: start -->
[![R-CMD-check](https://github.com/Novartis/rdocx/actions/workflows/check_package.yml/badge.svg)](https://github.com/Novartis/rdocx/actions/workflows/check_package.yml)
[![pkgdown](https://github.com/Novartis/rdocx/actions/workflows/pkgdown.yml/badge.svg)](https://github.com/Novartis/rdocx/actions/workflows/pkgdown.yml)
Expand Down
4 changes: 2 additions & 2 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
url: https://opensource.nibr.com/rdocx/
template:
bootstrap: 5
bootswatch: minty
light-switch: true
theme: gruvbox-light
theme-dark: gruvbox-dark

development:
mode: auto
Expand All @@ -22,6 +21,7 @@ reference:
- SignaturesTableRow
- TitlePage
- rmd_render
- generic_report_template

- title: Automated Reporting

Expand Down
2 changes: 1 addition & 1 deletion man/ActivityTable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/ChangelogTable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/ChangelogTableRow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/ReplaceOutputs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/SignaturesTable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/SignaturesTableRow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/TitlePage.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/change_figure.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/change_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/check_name.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/check_null_or_flextable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2e8e815

Please sign in to comment.