-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error when a vignette fragment is imported through 'child=' code chuck option #17
Comments
Same problem here. There reason seems to be that Lines 165 to 173 in fed2f4d
|
BiocCheck fails with an error if a vignette loads additional markdown-files. See Bioconductor/BiocCheck#17 This commit should revert in the near future.
Maybe this old issue is a good issue to take care of in the hackathon ? Although usually not a lot of packages use this functionality... |
I just ran into this error. As was trying to find a way to share the same code across Bioconductor vignette and README to reduce code duplication and maintenance, and found a nifty method to share the content using It works well for a CRAN package (tidyseurat) but it fails with a couple of Bioconductor packages I tried it with here and here, as BiocCheck gives the same error as reported in this issue. Seems also due to (ping @stemangiola) |
If I can add my two cents, reconciling the RADME and Vignette roles is something that many projects are trying to do, with a long list of discussion and blog posts. Furthermore re-utilizing code chunks is incredibly useful to build educational resources around GitHub and Bioconductor. I would strongly up-vote for tackling this problem with some priority. |
FWIW a straightforward solution is to make the README a symbolic link to a relevant vignette. Another approach is to use a github action to create the README.md from a vignette (modifying https://github.com/r-lib/actions/tree/master/examples#render-readme; implemented (poorly) at https://github.com/Bioconductor/Gen3/blob/master/.github/workflows/render-vignette-as-readme.yaml) If this comment #17 (comment) is on the right track then perhaps there is a pull request that could be developed? |
Thanks for the suggestions! They are interesting I hadn't thought of trying things like that. I guess that the symlink and github actions methods would require the vignette and README to be identical? With the child method it's quite flexible as you can also have some differences between them. In our case we only have small differences at the moment e.g. including the GitHub actions badge in the README but not in the vignette. But maybe some people might want to include just some of the vignette, or parts from different vignettes. So I think it could be good if possible to find a way to allow the child method and as that would solve the OP's issue with wanting to include child docs. That comment seems to be on the right track, that the extra files aren't getting copied to where the vignette is being built. As, because this child method works with R CMD Check, I had a look to try to see how they get it to work there. I found this SO post https://stackoverflow.com/questions/50078849/package-build-fails-because-vignette-does-not-find-child-rmd-files It seems they had the same issue with including child docs and it was fixed I think through this patch to R mentioned in that SO post https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17416. But I don't know if that would work here? |
I got similar issue when using BiocCheck in GitHub Action. It took me a few days to figure out what's wrong. I thought there's a problem with the library call check. It seemed due to the fact that I used
|
See #121 |
Thanks @LiNk-NY for the PR! I've just been trying it out and it works well locally for me, have tested with BiocCheck 1.27.9 and 1.27.13. One thing though is it fails with GitHub Actions. here https://github.com/stemangiola/tidybulk/runs/2356663732?check_suite_focus=true#step:24:379
The R CMD Check passes fine, it's just the BiocCheck. I think it's because our child is in |
It seems to be a separate issue. Please open a new one with a minimally reproducible example. It may not be in the scope of |
Hi,
I'm encountering problems during BiocCheck, which are likely caused by the functions not finding vignette files. In the package I have a master vignette which serves as skeleton for including parts placed in "src" subfolder by using
child=
code chunk option. BiocCheck fails during lineparsedCode <- parseFiles(package_dir)
. The linked toy example reproduces the described behavior, see also the output below.Best regards,
Małgorzata
The text was updated successfully, but these errors were encountered: