Skip to content

Commit

Permalink
Remove hrbrthemes due to missing fonts in Windows, MacOS and Ubuntu-1…
Browse files Browse the repository at this point in the history
…6.04 3.3 as figured by R CMD checks
  • Loading branch information
Anirban166 committed Aug 23, 2020
1 parent 9f2e7e9 commit 61915c6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Expand Up @@ -25,8 +25,7 @@ Imports: boot,
bench,
ggplot2,
stats,
testthat (>= 2.1.0),
hrbrthemes
testthat (>= 2.1.0)
Suggests:
covr,
knitr,
Expand Down
13 changes: 9 additions & 4 deletions docs/articles/testComplexity.html

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

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Expand Up @@ -10,5 +10,5 @@ articles:
PELT_and_SegNeigh: PELT_and_SegNeigh.html
substring_and_gregexpr: substring_and_gregexpr.html
testComplexity: testComplexity.html
last_built: 2020-08-23T07:58Z
last_built: 2020-08-23T08:41Z

9 changes: 5 additions & 4 deletions vignettes/testComplexity.Rmd
Expand Up @@ -202,17 +202,18 @@ The call stack (sequence of calls that lead to the error) is returned via a call
### [Plotters](https://anirban166.github.io/testComplexity/reference/index.html#section-plotters)
These functions are for plotting the metrics returned by the quantifiers, in case the user still prefers to diagnose the obtained complexity result via the traditional method, with a visual representation of the benchmarked data. Considering the columns from the data frames returned by the quantiftying functions, the user can create plots for:

- Timings vs Data sizes, via `plotTimings`:
- Timings vs Data sizes, via `plotTimings`: <br>
```{r echo=TRUE, fig.show='hold', warning=FALSE}
library(testComplexity)
df <- asymptoticTimings(PeakSegOptimal::PeakSegPDPA(rpois(N, 1), max.segments = 3L), data.sizes = 10^seq(1, 4))
plotTimings(df, titles = list("Timings", "PeakSegOptimal::PeakSegPDPA"), line.color = "#ffec1b", point.color = "#ffec1b", line.size = 1, point.size = 1.5) + hrbrthemes::theme_ft_rc()
plotTimings(df, titles = list("Timings", "PeakSegOptimal::PeakSegPDPA"), line.color = "orange", point.color = "black", line.size = 1, point.size = 1.5)
```
- Memory Allocations vs Data sizes, via `plotMemoryUsage`:

- Memory Allocations vs Data sizes, via `plotMemoryUsage`: <br>
```{r echo=TRUE, fig.show='hold', warning=FALSE}
library(testComplexity)
df <- asymptoticMemoryUsage(PeakSegOptimal::PeakSegPDPA(rpois(N, 1), max.segments = 3L), data.sizes = 10^seq(1, 4, by = 0.1))
plotMemoryUsage(df, titles = list("Memory usage", "PeakSegOptimal::PeakSegPDPA"), line.color = "#ffec1b", point.color = "#ffec1b", line.size = 1, point.size = 1.5) + hrbrthemes::theme_ft_rc()
plotMemoryUsage(df, titles = list("Memory usage", "PeakSegOptimal::PeakSegPDPA"), line.color = "orange", point.color = "black", line.size = 1, point.size = 1.5)
```

-------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 61915c6

Please sign in to comment.