I am working on a project about R's language syntax and I want to retrieve as many as possible *.R extension files from GitHub. I couldn't figure it out myself at the GitHub's API tool nor with custom search engines such as Google's and Bing's. Any input would be vastly appreciated.

1 Answer 1


Have you tried using this keyword in Google custom search engine:

site:github.com filetype:r

For example you want to search any r file related to Anova in github.com. So open google.com and type this keyword:

anova site:github.com filetype:r

  • Awesome what I did was to replace the github.com with raw.githubusercontent.com to retrieve the raw code.
    – 20-roso
    Dec 10, 2018 at 11:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.