Skip to content

Commit

Permalink
Merge pull request #32 from mihaiconstantin/fix/html-syntax-errors
Browse files Browse the repository at this point in the history
Fix `HTML` syntax (semantic) errors

Closes #30 (hopefully).
  • Loading branch information
mihaiconstantin authored Sep 9, 2022
2 parents b299889 + 695251c commit 18acc39
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 25 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: powerly
Title: Sample Size Analysis for Psychological Networks and More
Version: 1.8.5
Version: 1.8.6
Authors@R:
person(given = "Mihai",
family = "Constantin",
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. The format
is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.8.6
### Fixed
- Remove invalid `HTML` syntax from documented functions (i.e., `div` elements
nested inside `p` elements). See
[#30](https://github.com/mihaiconstantin/powerly/issues/30) (i.e., the reply
by @mihaiconstantin) for more details.

## 1.8.5
### Fixed
- Fix `HTML` validation problems during the `CRAN` checks. Closes
Expand Down
12 changes: 6 additions & 6 deletions man-roxygen/plot-Method.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@
#'
#' \if{html}{
#' Example of a plot for each step of the method:
#' \out{<div style="text-align: center">}
#' \out{<span style="display: block; text-align: center;">}
#' \out{<span style="display: block; margin-top: 1rem; margin-bottom: 0.5rem">}\strong{Step 1: Monte Carlo Replications}\out{</span>}
#' \figure{example-step-1.png}{options: style="width: 640px; max-width: 90\%;" alt="Example Step 1"}
#' \out{</div>}
#' \out{<div style="text-align: center">}
#' \out{</span>}
#' \out{<span style="display: block; text-align: center;">}
#' \out{<span style="display: block; margin-top: 1rem; margin-bottom: 0.5rem">}\strong{Step 2: Curve Fitting}\out{</span>}
#' \figure{example-step-2.png}{options: style="width: 640px; max-width: 90\%;" alt="Example Step 2"}
#' \out{</div>}
#' \out{<div style="text-align: center">}
#' \out{</span>}
#' \out{<span style="display: block; text-align: center;">}
#' \out{<span style="display: block; margin-top: 1rem; margin-bottom: 0.5rem">}\strong{Step 3: Bootstrapping}\out{</span>}
#' \figure{example-step-3.png}{options: style="width: 640px; max-width: 90\%;" alt="Example Step 3"}
#' \out{</div>}
#' \out{</span>}
#' }
#'
#' @seealso [powerly::summary.Method()], [powerly::powerly()]
4 changes: 2 additions & 2 deletions man-roxygen/plot-Step.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
#'
#' \if{html}{
#' Example of a plot:
#' \out{<div style="text-align: center">}
#' \out{<span style="display: block; text-align: center; margin-top: 1rem;">}
#' \figure{example-step-<%= step_number %>.png}{options: style="width: 640px; max-width: 90\%;" alt="Example Step <%= step_number %>"}
#' \out{</div>}
#' \out{</span>}
#' }
#'
#' @seealso [powerly::plot.Method()], [powerly::summary.Method()]
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/plot-Validation.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
#'
#' \if{html}{
#' Example of a validation plot:
#' \out{<div style="text-align: center">}
#' \out{<span style="display: block; text-align: center; margin-top: 1rem;">}
#' \figure{example-validation.png}{options: style="width: 640px; max-width: 90\%;" alt="Example Validation"}
#' \out{</div>}
#' \out{</span>}
#' }
#'
#' @seealso [powerly::summary.Validation()], [powerly::validate()]
12 changes: 6 additions & 6 deletions man/plot.Method.Rd

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

4 changes: 2 additions & 2 deletions man/plot.StepOne.Rd

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

4 changes: 2 additions & 2 deletions man/plot.StepThree.Rd

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

4 changes: 2 additions & 2 deletions man/plot.StepTwo.Rd

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

4 changes: 2 additions & 2 deletions man/plot.Validation.Rd

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

0 comments on commit 18acc39

Please sign in to comment.