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

The :: operator cannot be included in create_deck() #18

Closed
JeffreyRStevens opened this issue Feb 10, 2023 · 0 comments · Fixed by #21
Closed

The :: operator cannot be included in create_deck() #18

JeffreyRStevens opened this issue Feb 10, 2023 · 0 comments · Fixed by #21

Comments

@JeffreyRStevens
Copy link
Owner

When including the :: operator in the list of terms, create_deck() gives the following error:

Error in `select_terms()`:
! The following entry does not include `()` (for example, "library()"). Please append () at the end of all functions (except
  operators).
::

This is because in the select_terms() function, operators are defined by excluding elements/functions containing ::.

operators <- subset(all_functions, !grepl("::", all_functions$function_name))

Simple fix is to manually add :: to the list of operators after this exclusion.

JeffreyRStevens added a commit that referenced this issue Mar 15, 2024
* Include `::` operator in `create_deck()` (fix #18)

* Export Rmd files (fix #19 )

* Use `expect_no_error()` in tests
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

Successfully merging a pull request may close this issue.

1 participant