leonawicz / tabr
Showing 1 of 223 files from the diff.
Other files ignored by Codecov
docs/LICENSE.html has changed.
man/plot_music.Rd has changed.
docs/sitemap.xml has changed.
docs/pkgdown.css has changed.
docs/pkgdown.yml has changed.
.Rbuildignore has changed.
docs/404.html has changed.
docs/authors.html has changed.
docs/index.html has changed.
README.md has changed.
codemeta.json has changed.
README.Rmd has changed.
DESCRIPTION has changed.
cran-comments.md has changed.

@@ -259,9 +259,8 @@
Loading
259 259
#'
260 260
#' For R markdown you can alternatively render the png using the corresponding
261 261
#' \code{render_music_*} function and then place it in the document explicitly
262 -
#' using \code{knitr::include_graphics}. Transparency is not relevant to these
263 -
#' wrapper functions since they are used only for plotting, not for overlays on
264 -
#' existing. See \code{\link{render_music}} for more details.
262 +
#' using \code{knitr::include_graphics}.
263 +
#' See \code{\link{render_music}} for more details.
265 264
#'
266 265
#' @param music a music object.
267 266
#' @param header a named list of arguments passed to the header of the
@@ -279,6 +278,7 @@
Loading
279 278
#' force on or off completely.
280 279
#' @param colors a named list of LilyPond element color global overrides. See
281 280
#' \code{lilypond} for details.
281 +
#' @param transparent logical, transparent background for intermediate png file.
282 282
#' @param res numeric, resolution, png only. Defaults to 300.
283 283
#'
284 284
#' @return a plot
@@ -308,10 +308,10 @@
Loading
308 308
#' }
309 309
plot_music <- function(music, clef = "treble", tab = FALSE, tuning = "standard",
310 310
                       string_names = NULL, header = NULL, paper = NULL,
311 -
                       colors = NULL, res = 300){
311 +
                       colors = NULL, transparent = FALSE, res = 300){
312 312
  file <- tempfile(fileext = ".png")
313 313
  render_music(music, file, clef, tab, tuning, string_names, header, paper,
314 -
               midi = FALSE, colors, transparent = FALSE, res, keep_ly = FALSE,
314 +
               midi = FALSE, colors, transparent, res, keep_ly = FALSE,
315 315
               simplify = FALSE)
316 316
  .draw_image(file)
317 317
  unlink(file, recursive = TRUE, force = TRUE)
@@ -321,10 +321,10 @@
Loading
321 321
#' @export
322 322
#' @rdname plot_music
323 323
plot_music_tc <- function(music, header = NULL, paper = NULL, colors = NULL,
324 -
                          res = 300){
324 +
                          transparent = FALSE, res = 300){
325 325
  file <- tempfile(fileext = ".png")
326 326
  render_music_tc(music, file, header, paper, midi = FALSE, colors,
327 -
                  transparent = FALSE, res, keep_ly = FALSE, simplify = FALSE)
327 +
                  transparent, res, keep_ly = FALSE, simplify = FALSE)
328 328
  .draw_image(file)
329 329
  unlink(file, recursive = TRUE, force = TRUE)
330 330
  invisible()
@@ -333,10 +333,10 @@
Loading
333 333
#' @export
334 334
#' @rdname plot_music
335 335
plot_music_bc <- function(music, header = NULL, paper = NULL, colors = NULL,
336 -
                          res = 300){
336 +
                          transparent = FALSE, res = 300){
337 337
  file <- tempfile(fileext = ".png")
338 338
  render_music_bc(music, file, header, paper, midi = FALSE, colors,
339 -
                  transparent = FALSE, res, keep_ly = FALSE, simplify = FALSE)
339 +
                  transparent, res, keep_ly = FALSE, simplify = FALSE)
340 340
  .draw_image(file)
341 341
  unlink(file, recursive = TRUE, force = TRUE)
342 342
  invisible()
@@ -346,11 +346,11 @@
Loading
346 346
#' @rdname plot_music
347 347
plot_music_tab <- function(music, clef = NA, tuning = "standard",
348 348
                           string_names = NULL, header = NULL, paper = NULL,
349 -
                           colors = NULL, res = 300){
349 +
                           colors = NULL, transparent = FALSE, res = 300){
350 350
  file <- tempfile(fileext = ".png")
351 351
  render_music_tab(music, file, clef, tuning, string_names, header, paper,
352 -
                   midi = FALSE, colors, transparent = FALSE, res,
353 -
                   keep_ly = FALSE, simplify = FALSE)
352 +
                   midi = FALSE, colors, transparent, res, keep_ly = FALSE,
353 +
                   simplify = FALSE)
354 354
  .draw_image(file)
355 355
  unlink(file, recursive = TRUE, force = TRUE)
356 356
  invisible()
@@ -360,11 +360,11 @@
Loading
360 360
#' @rdname plot_music
361 361
plot_music_guitar <- function(music, tuning = "standard", string_names = NULL,
362 362
                              header = NULL, paper = NULL, colors = NULL,
363 -
                              res = 300){
363 +
                              transparent = FALSE, res = 300){
364 364
  file <- tempfile(fileext = ".png")
365 365
  render_music_guitar(music, file, tuning, string_names, header, paper,
366 -
                      midi = FALSE, colors, transparent = FALSE, res,
367 -
                      keep_ly = FALSE, simplify = FALSE)
366 +
                      midi = FALSE, colors, transparent, res, keep_ly = FALSE,
367 +
                      simplify = FALSE)
368 368
  .draw_image(file)
369 369
  unlink(file, recursive = TRUE, force = TRUE)
370 370
  invisible()
@@ -374,11 +374,11 @@
Loading
374 374
#' @rdname plot_music
375 375
plot_music_bass <- function(music, tuning = "bass", string_names = FALSE,
376 376
                            header = NULL, paper = NULL, colors = NULL,
377 -
                            res = 300){
377 +
                            transparent = FALSE, res = 300){
378 378
  file <- tempfile(fileext = ".png")
379 379
  render_music_bass(music, file, tuning = "bass", string_names, header, paper,
380 -
                    midi = FALSE, colors, transparent = FALSE, res,
381 -
                    keep_ly = FALSE, simplify = FALSE)
380 +
                    midi = FALSE, colors, transparent, res, keep_ly = FALSE,
381 +
                    simplify = FALSE)
382 382
  .draw_image(file)
383 383
  unlink(file, recursive = TRUE, force = TRUE)
384 384
  invisible()
Files Coverage
R 99.46%
Project Totals (32 files) 99.46%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
13
  notify:
14
    gitter:
15
      default:
16
        url: "https://webhooks.gitter.im/e/510f32418e781cb92eb3"
17
        threshold: 1%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading