Skip to content

Commit

Permalink
Add library calls to vignette
Browse files Browse the repository at this point in the history
`devtools::check()` passes on my local machine, but the checks on GitHub fail stating that `plot_writer_profiles()` is not an exported function of the handwriter package. Checking to see if adding `library(handwriter)` to the vignette fixes the problem.
  • Loading branch information
stephaniereinders committed Jan 2, 2025
1 parent d235c9d commit 1ea299a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vignettes/introduction-to-slr-model.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ We estimated the writer profiles for all handwriting samples using the `handwrit
The `train` data frame contains the estimated writer profiles for train set. Let's visualize the writer profiles for two writers from `train`:

```{r profiles-facet}
library(handwriterRF)
library(dplyr)
library(handwriter)
wps <- train %>% dplyr::filter(writer == "w0004" | writer == "w0015")
Expand Down Expand Up @@ -70,6 +71,8 @@ Next, we calculate the distances between each pair of writer profiles in `valida
To visualize the reference similarity scores, we plot the rates of scores assigned to different bins (rather than frequencies), as the data often contains far more "different writer" pairs than "same writer" pairs. This gives us a clearer view of the distribution of reference scores.

```{r ref-scores}
library(handwriterRF)
plot_scores(ref_scores)
```

Expand Down

0 comments on commit 1ea299a

Please sign in to comment.