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

larger-scale test of new Rmd support #6

Closed
hrbrmstr opened this issue May 12, 2018 · 4 comments
Closed

larger-scale test of new Rmd support #6

hrbrmstr opened this issue May 12, 2018 · 4 comments

Comments

@hrbrmstr
Copy link
Owner

hrbrmstr commented May 12, 2018

I filed a PR into the main cloc repo (AlDanial/cloc#294) but will be keeping it here regardless of whether it gets incorporated.

Only the lines of code between the triple-backticks clode blocks are included. THe resultant "language" type is Rmd as the code blocks could be anything. The results will only be fully accurate for R/Python-ish syntax languages (i.e. the ones supporting the basic cloc rules for those languages) but they should be accurate enough for rough estimates for other languages used in Rmd code blocks.

Wondering if anyone (cough @maelle cough) has a cadre of R markdown files that they might be willing to give this a major test with. I tend to 'spin' vs 'knit' so my collection is tiny.

@maelle
Copy link
Contributor

maelle commented May 13, 2018

Mmmh I could extract all vignettes of all ropensci and ropenscilabs packages?

@hrbrmstr
Copy link
Owner Author

Oh, I was assuming you had a cadre of Rmds due to blogdown (do not go to any trouble for this if that's not the case :-)

@AlDanial
Copy link

@hrbrmstr : your cloc PR AlDanial/cloc#294 is ready to merge, I'm just waiting for you to add the test.Rmd and test.Rmd.yaml files as mentioned in the comment section. Or am I overlooking something?

@hrbrmstr
Copy link
Owner Author

aye. once I finalize some work-work things today i'm pushing that back up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants