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
document the importance of the internet connection to create codemeta.json #270
Comments
Oooh, so this was the source of my problems? I have a good connection at work but I'm guessing some requests were blocked due to the network configuration. And In my opinion, it would be useful if said documentation specified which websites/URL are queried, and what for. |
yes and yes, good points! |
Keeping notes here The package queries
|
Reg timeout. I don't understand why the requests don't fail since @jeroen said curl has a default timeout of 10 seconds. I have trouble debugging this. To set the timeout and other useful options (Jeroen mentioned https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html, https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_LIMIT.html, https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html) one needs to create a handle https://jeroen.cran.dev/curl/articles/intro.html#setting-handle-options Currently the call GitHub API uses |
|
I wonder if this should also be documented via It would be useful for users who don't necessarily read the vignette and it would help pinpoint the problematic domains when working with an annoying firewall.
|
Excellent idea! I'll work on that. |
## Deprecation * The use_git_hook argument of write_codemeta() has been deprecated. Solutions for keeping DESCRIPTION and codemeta.json in sync are available in the docs. ## Enhancements * Docs were improved to make a better case for codemetar. * Changes in the way codeRepository is guessed. codemetar can now recognize an URL from GitHub, GitLab, Bitbucket, R-Forge among several URLs in DESCRIPTION, to assign it to codeRepository. If no URL in DESCRIPTION is from any of these providers, `guess_github()` is called. * Adds documentation of internet needs and verbosity to steps downloading information from the web (#270, @Bisaloo) * New argument `write_minimeta` for `write_codemeta()` indicating whether to also create the file schemaorg.json that corresponds to the metadata Google would validate, to be inserted to a webpage for SEO. It is saved as "schemaorg.json" alongside `path` (by default, "codemeta.json"). This functionality requires the `jsonld` package (listed under `Suggests`). ## Bug fixes * Fix for detecting rOpenSci review badge (@sckott, #236) * Fix extraction of ORCID when composite comment (@billy34, #231) * Fix bug in crosswalking (#243) * Bug fix: the codeRepository is updated if there's any URL in DESCRIPTION. * Bug fix: the README information is now updated by codemeta_readme(). Previously if e.g. a developmentStatus had been set previously, it was never updated. ## Internals * Code cleaning following the book Martin, Robert C. Clean code: a handbook of agile software craftsmanship. Pearson Education, 2009. (@hsonne, #201, #202, #204, #205, #206, #207, #209, #210, #211, #212, #216, #218, #219, #220, #221). * Use of re-usable Rmd pieces for the README, intro vignette and man pages to reduce copy-pasting.
No connection -> less data.
Poor connection -> very slooow (ask me how I know).
The text was updated successfully, but these errors were encountered: