Skip navigation

Riffing off of [the previous post](http://rud.is/b/2015/08/05/speeding-up-your-quests-for-r-stuff/), here’s a way to quickly search CRAN (the @RStudio flavor) from the Chrome search bar.

– Paste `chrome://settings/searchEngines` into your location bar and hit return/enter
– Scroll down until the input boxes show, enabling you to add a search engine
– For _”Add a new search engine”_ put “`CRAN`”
– For _”Keyword”_ put “`R`”, “`rstats`” or “`CRAN`”, but “`R`” is super easy to type, though it may not be optimal for you :-)
– For _”URL with %s in place of query”_ put the following:

https://www.google.com/search?as_q=%s&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=cran.rstudio.com&as_occt=any&safe=images&as_filetype=&as_rights=&gws_rd=ssl

(you may be able to trim that URL a bit, if desired)

Save that and then in the Chrome location bar hit `R` then `[TAB]` and you’ll be sending the query to a custom Google search that only looks on CRAN (specifically the @RStudio CRAN mirror).

2 Comments

  1. Hmmm… given the pwerful and detailed R-search tools on some of the CRAN sub-pages, any way to access them directly? Also worth reminding folks of the “sos” package (not to mention StackOverflow)

    • superb idea. i’ll try to crank out a third “help” post this week. thx.


2 Trackbacks/Pingbacks

  1. […] article was first published on rud.is » R, and kindly contributed to […]

  2. By Distilled News | Data Analytics & R on 07 Aug 2015 at 3:58 pm

    […] Adding a CRAN Search Engine to Chrome […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.