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

Fixed failing doctests because of changes to Random.jl #3472

Closed
wants to merge 3 commits into from

Conversation

nathanrboyer
Copy link
Contributor

@nathanrboyer nathanrboyer commented Oct 10, 2024

MersenneTwister(1234) from Random.jl yields different results now than those shown in the docstrings. I updated the docstrings of shuffle and shuffle! so that their output matches the new results. I also had to modify the docs Project.toml to be able to run the doctests correctly as suggested by Documenter.jl.

Note that for packages, you also likely need to have your package that you are documenting as a "dev dependency" of the docs/ environment.

This should fix the currently failing doctests in #3360.

This is suggested by the Documenter documentation.
I was not able to locally run make.jl until I did this.
(Actually the situation was worse because I was running the tests with a different version of the package than the local one, which was yielding confusing error messages.)
@nathanrboyer
Copy link
Contributor Author

This is what I ran from within the DataFrames directory which updated the docs Project.toml file and enabled me to run julia --project make.jl:

(DataFrames) pkg> activate docs

(docs) pkg> dev .

I'm not sure if that relationship is fully captured by the code in the Project.toml file.

@nathanrboyer
Copy link
Contributor Author

Now the behavior flipped so this branch is failing and #3360 passed???

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 this pull request may close these issues.

1 participant