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

librdf error #427

Closed
maelle opened this issue Dec 1, 2023 · 6 comments
Closed

librdf error #427

maelle opened this issue Dec 1, 2023 · 6 comments

Comments

@maelle
Copy link
Contributor

maelle commented Dec 1, 2023

I'm sorry in advance for the very vague issue but maybe it rings a bell for someone reading this?

I was seeing errors from librdf. Now I'm no longer seeing them. I have a 😭 screenshot 😭 as proof

image

I was originally seeing this for a pkgdown website build. I tried removing the faulty HTML's pieces one by one but then nothing looked faulty at all.

I'm at a loss to understand where the error (which is an error that didn't stop R) came from and what made it disappear. I did try changing options but in each call so why would it have a lasting effect.

@maelle
Copy link
Contributor Author

maelle commented Dec 1, 2023

Initial report ropensci-org/rotemplate#106

@maelle
Copy link
Contributor Author

maelle commented Dec 1, 2023

Another occurrence of the error, h/t @jonthegeek https://cran.r-project.org/web/checks/check_results_cwbtools.html

@maelle
Copy link
Contributor Author

maelle commented Dec 1, 2023

The problem is very specific to the package I was exploring 😅 @oggioniale https://github.com/ropensci/ReLTER/tree/dev

So maybe I should close this issue as it's probably not a widespread problem.

If I load the package, then I get

> xml2::read_html("<html><body><nav>bla</nav></body></html>")
librdf error - HTML parser error: Tag nav invalid
{html_document}
<html>
[1] <body><nav>bla</nav></body>

@maelle
Copy link
Contributor Author

maelle commented Dec 1, 2023

@oggioniale I know your package uses xml2 quite a bit, so maybe you have an idea about something in the package code (onLoad() and onAttach() seems innocuous) that could lead to the problem. I see your package doesn't Depend on a package, and could not find any option/environment variable setting that could be related.

@maelle
Copy link
Contributor Author

maelle commented Dec 1, 2023

now if I restart the session, remove all files from R/, then load again I still get the error.

@maelle
Copy link
Contributor Author

maelle commented Dec 1, 2023

probably something in one of the dependencies. I'll close this so as not to pollute this issue tracker!

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