carpentries / glosario-r

glosario create and retrieve multilingual glossaries.
https://carpentries.github.io/glosario-r
Other
6 stars 5 forks source link

Receiving an error "some references are slugs that are not defined" for all functions in glosario R package #26

Open larnsce opened 1 year ago

larnsce commented 1 year ago

Use case

I am trying to use glosario in a Quarto book project and I had thought to use the define functions in combination with an idea document on the quarto-cli issue tracker at: https://github.com/quarto-dev/quarto-cli/issues/1697#issuecomment-1462441697_.

My idea would be to do the following:

[data frame]{#data_frame}

:   `r glosario::define("data_frame")`

Error

The following reproducible example shows the error I receive:

library(glosario)

packageVersion("glosario")
#> [1] '0.2'

define("tidy_data")
#> Error: Some references are slugs that are not found:
#> ref: 'geometry_shader' from slug:  'fragment_shader'
#> ref: 'tidy data' from slug:  'openrefine'
#> ref: 'geometry_shader' from slug:  'shader'
#> ref: 'data analysis' from slug:  'spectral analysis'
#> ref: 'bayesian inference' from slug:  'spectral analysis'
#> ref: 'bayesian statistics' from slug:  'spectral analysis'
#> ref: 'geometry_shader' from slug:  'tessellation_shader'
#> ref: 'geometry_shader' from slug:  'vertex_shader'
define('data_frame')
#> Error: Some references are slugs that are not found:
#> ref: 'geometry_shader' from slug:  'fragment_shader'
#> ref: 'tidy data' from slug:  'openrefine'
#> ref: 'geometry_shader' from slug:  'shader'
#> ref: 'data analysis' from slug:  'spectral analysis'
#> ref: 'bayesian inference' from slug:  'spectral analysis'
#> ref: 'bayesian statistics' from slug:  'spectral analysis'
#> ref: 'geometry_shader' from slug:  'tessellation_shader'
#> ref: 'geometry_shader' from slug:  'vertex_shader'
glosario::get_glossary()
#> Error: Some references are slugs that are not found:
#> ref: 'geometry_shader' from slug:  'fragment_shader'
#> ref: 'tidy data' from slug:  'openrefine'
#> ref: 'geometry_shader' from slug:  'shader'
#> ref: 'data analysis' from slug:  'spectral analysis'
#> ref: 'bayesian inference' from slug:  'spectral analysis'
#> ref: 'bayesian statistics' from slug:  'spectral analysis'
#> ref: 'geometry_shader' from slug:  'tessellation_shader'
#> ref: 'geometry_shader' from slug:  'vertex_shader'

Created on 2023-06-13 with reprex v2.0.2

mianzg commented 1 year ago

27