在github存储库中搜索定义给定函数的文件 [英] Search a github repository for the file defining a given function

查看:921
本文介绍了在github存储库中搜索定义给定函数的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在github上搜索公共存储库以查找软件定义给定函数的位置。看来这应该是直接使用高级搜索。不知道我是否不理解过滤器,或者功能是否没有定义。例如,想象一下,我想找到在ggplot2仓库中定义了Hadley的 facet_wrap 函数(它就在这里



我尝试使用高级搜索栏选择搜索代码,写入R并输入

  facet_wrap repo :ggplot2 

而我没有结果。我是否错误地形成了查询?

解决方案

您需要 user / repo 作为搜索词。



facet_wrap回购:hadley / ggplot2




I'd like to search a public repository on github to find where the software defines a given function. It seems this should be straight forward using the advanced search. Not sure if I'm not understanding the filters or if the functions just are not defined.

For example, imagine I want to find where Hadley's facet_wrap function is defined within the ggplot2 repository (it's here.)

I try the advanced search bar selecting Search "Code", written in "R" and enter

facet_wrap repo:ggplot2

And I get no results. Have I formed the query incorrectly?

解决方案

You need user/repo as a search term.

facet_wrap repo:hadley/ggplot2

gives 41 results.

这篇关于在github存储库中搜索定义给定函数的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆