Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
larnsce opened this issue Jun 13, 2023 · 1 comment

Comments

@larnsce
Copy link
Contributor

larnsce commented Jun 13, 2023

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: quarto-dev/quarto-cli#1697 (comment)_.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants