Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxo-m committed Jun 10, 2016
1 parent d75fb77 commit 82506f6
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ hadleyverse <- gh_list_packages(username = "hadley")
transform(head(hadleyverse), title = substr(title, 1, 50))
```

By using the result, you can install all packages created by hadley.

```{r eval=FALSE}
repos <- with(hadleyverse, paste(username, package_name, sep="/"))
githubinstall(repos) # I have not tried it
```

### 3.4. Search Packages by a Keyword

`gh_search_packages()` returns the list of R package repositories on GitHub that the titles contains a given keyword.
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ head(hadleyverse)
## 6 hadley decumar An alternative to sweave
```

By using the result, you can install all packages created by hadley.


```r
repos <- with(hadleyverse, paste(username, package_name, sep="/"))
githubinstall(repos) # I have not tried it
```

### 3.4. Search Packages by a Keyword

`gh_search_packages()` returns the list of R package repositories on GitHub that the titles contains a given keyword.
Expand Down
4 changes: 4 additions & 0 deletions vignettes/githubinstall.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ gh_suggest_username("yuhui")
hadleyverse <- gh_list_packages(username = "hadley")
transform(head(hadleyverse), title = substr(title, 1, 50))

## ----eval=FALSE----------------------------------------------------------
# repos <- with(hadleyverse, paste(username, package_name, sep="/"))
# githubinstall(repos) # I have not tried it

## ----eval=FALSE----------------------------------------------------------
# gh_search_packages("lasso")

Expand Down
7 changes: 7 additions & 0 deletions vignettes/githubinstall.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ hadleyverse <- gh_list_packages(username = "hadley")
transform(head(hadleyverse), title = substr(title, 1, 50))
```

By using the result, you can install all packages created by hadley.

```{r eval=FALSE}
repos <- with(hadleyverse, paste(username, package_name, sep="/"))
githubinstall(repos) # I have not tried it
```

### 3.4. Search Packages by a Keyword

`gh_search_packages()` returns the list of R package repositories on GitHub that the titles contains a given keyword.
Expand Down
3 changes: 3 additions & 0 deletions vignettes/githubinstall.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ <h3>3.3. List the Packages</h3>
## 4 hadley bookdown Watch
## 5 hadley clusterfly An R package for visualising high-dimensional clus
## 6 hadley decumar An alternative to sweave</code></pre>
<p>By using the result, you can install all packages created by hadley.</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">repos &lt;-<span class="st"> </span><span class="kw">with</span>(hadleyverse, <span class="kw">paste</span>(username, package_name, <span class="dt">sep=</span><span class="st">&quot;/&quot;</span>))
<span class="kw">githubinstall</span>(repos) <span class="co"># I have not tried it</span></code></pre></div>
</div>
<div id="search-packages-by-a-keyword" class="section level3">
<h3>3.4. Search Packages by a Keyword</h3>
Expand Down

0 comments on commit 82506f6

Please sign in to comment.