-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Avoid partial matching when extracting metadata element #526
Conversation
Thank you!
I would be interested to get output of what is going wrong for you and what your build system is. There is a known bug with running the tests in RStudio because of the differen pandoc versions (we officially use 2.19.2, but RStudio is at 3.1 I think) and I really just need to suck it up and implement snapshot test versioning for pandoc. |
@Bisaloo can you add yourself as a contributor to the DESCRIPTION? |
Here what I get outside of RStudio: Test results
Session info
The warnings are due to more partial matching in pegboard. I can submit a follow up PR there. Not sure about the errors regarding missing files. I will investigate but posting in case you immediately understand what the issue is. |
The strangest part is that tests pass when I run test files individually 😮💨 |
Thank you for these fixes, @Bisaloo! For context, this is the reason a lot of the tests were skipped. We built on pandoc 2.11.4
I suspect that the other tests fail because I have not properly protected them from the absence of the correct pandoc (so they check files that were not created). This interdependence of tests is something I am slowly working on rectifying. In the meantime, you can use the pandoc::pandoc_activate("2.19.2") and then I have this in my # SET PANDOC VERSION
if [ -d "${HOME}/.local/share/r-pandoc/2.19.2" ]; then
export PATH="${HOME}/.local/share/r-pandoc/2.19.2:${PATH}"
fi
|
For the test interdependence, you might find this PR in lintr useful: r-lib/lintr#1938. Not completely sure if it's overkill in your case but sharing anyway so you can evaluate. |
Thank you! Some of the tests files will hopefully be easy to fix, but others like the tests for git helpers is probably going to be a fix that involves just merging all of the |
This removes the partial matching warnings I was seeing.
I'm seeing some test failures locally but it looks like it's because I'm missing some files or because I'm using different system library versions. Let's try it on CI.
Fix #525