Convert roxygen2 comments to markdown#115
Conversation
fa012d5 to
dcefbaa
Compare
Codecov Report
@@ Coverage Diff @@
## master #115 +/- ##
=======================================
Coverage 48.44% 48.44%
=======================================
Files 18 18
Lines 1348 1348
=======================================
Hits 653 653
Misses 695 695
Continue to review full report at Codecov.
|
seabbs
left a comment
There was a problem hiding this comment.
nice stuff. A few comments. I see some issues in the check which will look at shortly.
R/eval_forecasts.R
Outdated
| #' the value in the \code{prediction} column, the value of \code{range} | ||
| #' should be 50 and the value of \code{boundary} should be "lower". | ||
| #' If you want to score the median (i.e. \code{range = 0}), you still | ||
| #' - `range` the range for which a forecast was made. For a 50%% interval |
There was a problem hiding this comment.
is %% correct markdown here?
There was a problem hiding this comment.
Hmm, I seem to remember that %% is the correct way to escape % in LaTeX rather than \% but I cannot find any source for this so I might have invented it 🤷 😅.
Anyways, it seems that % doesn't need to be escape in markdown and that both \% and %% produce extra characters:
testfile <- tempfile(fileext = ".md")
write(
r"(
10%
20\%
30%%
)",
testfile
)
knitr::knit(testfile, output = stdout())
#> processing file: /tmp/RtmpPqcVnl/file301a18fe1273.md
#>
#> 10%
#> 20\%
#> 30%%
#> A connection with
#> description "output"
#> class "textConnection"
#> mode "wr"
#> text "text"
#> opened "opened"
#> can read "no"
#> can write "yes"Created on 2021-08-04 by the reprex package (v2.0.0.9000)
Thanks for making me check!
|
I've never read this and perhaps explains why my documentation is shocking: https://cran.r-project.org/web/packages/roxygen2/vignettes/rd-formatting.html Key bits of the failing check: Mainly moving from \ to @ I think |
|
Thank you both for working on this! I'll review when I'm back from my
holidays, but please feel free to merge anything you see fit!
Hugo Gruson ***@***.***> schrieb am Mi., 4. Aug. 2021, 11:54:
… ***@***.**** commented on this pull request.
------------------------------
In R/pairwise-comparisons.R
<#115 (comment)>
:
> @@ -53,8 +52,8 @@
#'
#' eval <- scoringutils::eval_forecasts(scoringutils::range_example_data_long)
#' pairwise <- pairwise_comparison(eval, summarise_by = c("model"))
-#' @author Nikos Bosse ***@***.***}
-#' @author Johannes Bracher, ***@***.***}
+#' @author Nikos Bosse \email{nikosbosse@@gmail.com}
+#' @author Johannes Bracher, \email{johannes.bracher@@kit.edu}
Yep :), https://roxygen2.r-lib.org/articles/rd-formatting.html#links-1
(can't find the official source right now). As far as I know, it works well
with a single @ in most cases. But this is the 'correct' syntax if we
want to follow the rules.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJBYFLJMDKMSI4JHPVRKSKTT3EE4BANCNFSM5A35QOMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
|
The solution for failing tests would be to either:
Both solutions seem as good from a technical point of view. I'd say it depends if you want to advertise the surveillance package or not. So I leave the choice to you. |
No description provided.