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

Fix errors in automated tests #9

Open
johnbradley opened this issue Mar 31, 2023 · 2 comments
Open

Fix errors in automated tests #9

johnbradley opened this issue Mar 31, 2023 · 2 comments

Comments

@johnbradley
Copy link
Collaborator

Automated tests are failing due to problems running examples. The initial problem is that the functions are not exported in NAMESPACE. I tried adding "colorRampPalette_shuffle" to NAMESPACE and then had the same error for "generate_colors". After adding "generate_colors" there was an error on get_essential:

NoSuchKey (HTTP 404). The specified key does not exist.

I think this is because the environment isn't setup.
Perhaps we shouldn't be testing some of these examples via Github Actions.

Originally posted by @johnbradley in #8 (comment)

@johnbradley
Copy link
Collaborator Author

johnbradley commented Mar 31, 2023

Initial error seen in automated testing.
https://github.com/matthewhirschey/ddh/actions/runs/4576187679/jobs/8079984562?pr=8#step:6:3217

The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: colorRampPalette_shuffle
> ### Title: Function to generate shuffled colors based on 'colorRampPalette'
> ### Aliases: colorRampPalette_shuffle
> 
> ### ** Examples
> 
> colorRampPalette_shuffle(colors = c("#DEBBF4", "#BE34EF", "#AC7B84"))
Error in colorRampPalette_shuffle(colors = c("#DEBBF4", "#BE34EF", "#AC7B84")) : 
  could not find function "colorRampPalette_shuffle"

@johnbradley
Copy link
Collaborator Author

These problems can be reproduced locally within RStudio by running "Build" -> "Check"

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

1 participant