Skip to content

Commit 0c69d6f

Browse files
Remove plyr usage from example (#2403)
* Remove plyr usage from example * Also in .lyx
1 parent ac1503a commit 0c69d6f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

inst/examples/knitr-themes.Rnw

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ applied to R code:
7676

7777
<<demo-code, eval = FALSE>>=
7878
library(XML)
79-
library(plyr)
8079
library(reshape)
8180
# SCRAPE THE DATA FROM WEB
8281
@@ -94,7 +93,7 @@ save_data = function(y){
9493
return(tab)
9594
}
9695
97-
team.list = llply(years, save_data);
96+
team.list = lapply(years, save_data);
9897
mls = merge_recurse(team.list);
9998
@
10099

inst/examples/knitr-themes.lyx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,6 @@ library(XML)
398398

399399
\begin_layout Plain Layout
400400

401-
library(plyr)
402-
\end_layout
403-
404-
\begin_layout Plain Layout
405-
406401
library(reshape)
407402
\end_layout
408403

@@ -486,7 +481,7 @@ save_data = function(y){
486481

487482
\begin_layout Plain Layout
488483

489-
team.list = llply(years, save_data);
484+
team.list = lapply(years, save_data);
490485
\end_layout
491486

492487
\begin_layout Plain Layout

0 commit comments

Comments
 (0)