Skip to content

Commit 79039c7

Browse files
committed
Add reverse dependency checks (all look good)
1 parent c554739 commit 79039c7

File tree

4 files changed

+258
-0
lines changed

4 files changed

+258
-0
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ src\/RCS
2121
^windows$
2222
^a\.out\.dSYM$
2323
^NEWS\.md$
24+
^revdep$

revdep/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/

revdep/check.R

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
library("devtools")
2+
3+
res <- revdep_check()
4+
revdep_check_save_summary(res)
5+
revdep_check_save_logs(res)

revdep/summary.md

+251
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
# Setup
2+
3+
## Platform
4+
5+
|setting |value |
6+
|:--------|:----------------------------|
7+
|version |R version 3.1.2 (2014-10-31) |
8+
|system |x86_64, darwin13.4.0 |
9+
|ui |RStudio (0.99.104) |
10+
|language |(EN) |
11+
|collate |en_US.UTF-8 |
12+
|tz |Pacific/Auckland |
13+
14+
## Packages
15+
16+
|package |* |version |date |source |
17+
|:--------|:--|:-------|:----------|:--------------|
18+
|DBI | |0.3.1 |2014-09-24 |CRAN (R 3.1.1) |
19+
|testthat | |0.9.1 |2014-10-01 |CRAN (R 3.1.1) |
20+
21+
# Check results
22+
10 checked out of 10 dependencies
23+
24+
## Causata (4.2-0)
25+
Maintainer: Justin Hemann <justinh@causata.com>
26+
27+
```
28+
checking top-level files ... NOTE
29+
Non-standard file/directory found at top level:
30+
‘integration_tests’
31+
```
32+
```
33+
checking R code for possible problems ... NOTE
34+
GetMetadata.Connect: no visible global function definition for
35+
‘dbGetQuery’
36+
GetRawData.Connect: no visible global function definition for
37+
‘dbGetQuery’
38+
```
39+
```
40+
checking Rd cross-references ... WARNING
41+
Missing link or links in documentation object 'Connect.Rd':
42+
‘RMySQL’
43+
44+
See the information in section 'Cross-references' of the 'Writing R
45+
Extensions' manual.
46+
47+
```
48+
```
49+
checking files in ‘vignettes’ ... NOTE
50+
The following files look like leftovers/mistakes:
51+
‘Causata-vignette.log’
52+
Please remove them from your package.
53+
```
54+
55+
## compendiumdb (0.1.0)
56+
Maintainer: Umesh Nandal <u.k.nandal@amc.uva.nl>
57+
58+
```
59+
checking package dependencies ... NOTE
60+
Packages suggested but not available for checking:
61+
‘inSilicoDb’ ‘hgu133a.db’ ‘GSVA’ ‘GSVAdata’
62+
```
63+
64+
## db.r (0.1.3)
65+
Maintainer: Greg Lamp <greg@yhathq.com>
66+
Bug reports: https://github.com/yhat/db.r/issues
67+
68+
```
69+
checking package dependencies ... NOTE
70+
Package suggested but not available for checking: ‘RPostgreSQL’
71+
```
72+
73+
## dbConnect (1.0)
74+
Maintainer: Dason Kurkiewicz <dasonk@iastate.edu>
75+
76+
```
77+
checking package dependencies ... ERROR
78+
Package required but not available: ‘gWidgets’
79+
80+
Package suggested but not available for checking: ‘gWidgetsRGtk2’
81+
82+
See the information on DESCRIPTION files in the chapter ‘Creating R
83+
packages’ of the ‘Writing R Extensions’ manual.
84+
```
85+
86+
## dplyr (0.3.0.2)
87+
Maintainer: Hadley Wickham <hadley@rstudio.com>
88+
Bug reports: https://github.com/hadley/dplyr/issues
89+
90+
```
91+
checking package dependencies ... NOTE
92+
Packages suggested but not available for checking:
93+
‘RSQLite.extfuns’ ‘RPostgreSQL’
94+
```
95+
```
96+
checking dependencies in R code ... NOTE
97+
Namespace in Imports field not imported from: ‘R6’
98+
All declared Imports should be used.
99+
See the information on DESCRIPTION files in the chapter ‘Creating R
100+
packages’ of the ‘Writing R Extensions’ manual.
101+
```
102+
```
103+
checking examples ... ERROR
104+
Running examples in ‘dplyr-Ex.R’ failed
105+
The error most likely occurred in:
106+
107+
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
108+
> ### Name: src_mysql
109+
> ### Title: Connect to mysql/mariadb.
110+
> ### Aliases: src_mysql tbl.src_mysql
111+
>
112+
> ### ** Examples
113+
>
114+
> ## Not run:
115+
> ##D # Connection basics ---------------------------------------------------------
116+
> ##D # To connect to a database first create a src:
117+
> ##D my_db <- src_mysql(host = "blah.com", user = "hadley",
118+
> ##D password = "pass")
119+
> ##D # Then reference a tbl within that src
120+
> ##D my_tbl <- tbl(my_db, "my_table")
121+
> ## End(Not run)
122+
>
123+
> # Here we'll use the Lahman database: to create your own local copy,
124+
> # create a local database called "lahman", or tell lahman_mysql() how to
125+
> # a database that you can write to
126+
>
127+
> if (!has_lahman("postgres") && has_lahman("mysql")) {
128+
+ # Methods -------------------------------------------------------------------
129+
+ batting <- tbl(lahman_mysql(), "Batting")
130+
+ dim(batting)
131+
+ colnames(batting)
132+
+ head(batting)
133+
+
134+
+ # Data manipulation verbs ---------------------------------------------------
135+
+ filter(batting, yearID > 2005, G > 130)
136+
+ select(batting, playerID:lgID)
137+
+ arrange(batting, playerID, desc(yearID))
138+
+ summarise(batting, G = mean(G), n = n())
139+
+ mutate(batting, rbi2 = 1.0 * R / AB)
140+
+
141+
+ # note that all operations are lazy: they don't do anything until you
142+
+ # request the data, either by `print()`ing it (which shows the first ten
143+
+ # rows), by looking at the `head()`, or `collect()` the results locally.
144+
+
145+
+ system.time(recent <- filter(batting, yearID > 2010))
146+
+ system.time(collect(recent))
147+
+
148+
+ # Group by operations -------------------------------------------------------
149+
+ # To perform operations by group, create a grouped object with group_by
150+
+ players <- group_by(batting, playerID)
151+
+ group_size(players)
152+
+
153+
+ # MySQL doesn't support windowed functions, which means that only
154+
+ # grouped summaries are really useful:
155+
+ summarise(players, mean_g = mean(G), best_ab = max(AB))
156+
+
157+
+ # When you group by multiple level, each summarise peels off one level
158+
+ per_year <- group_by(batting, playerID, yearID)
159+
+ stints <- summarise(per_year, stints = max(stint))
160+
+ filter(ungroup(stints), stints > 3)
161+
+ summarise(stints, max(stints))
162+
+
163+
+ # Joins ---------------------------------------------------------------------
164+
+ player_info <- select(tbl(lahman_mysql(), "Master"), playerID,
165+
+ birthYear)
166+
+ hof <- select(filter(tbl(lahman_mysql(), "HallOfFame"), inducted == "Y"),
167+
+ playerID, votedBy, category)
168+
+
169+
+ # Match players and their hall of fame data
170+
+ inner_join(player_info, hof)
171+
+ # Keep all players, match hof data where available
172+
+ left_join(player_info, hof)
173+
+ # Find only players in hof
174+
+ semi_join(player_info, hof)
175+
+ # Find players not in hof
176+
+ anti_join(player_info, hof)
177+
+
178+
+ # Arbitrary SQL -------------------------------------------------------------
179+
+ # You can also provide sql as is, using the sql function:
180+
+ batting2008 <- tbl(lahman_mysql(),
181+
+ sql("SELECT * FROM Batting WHERE YearID = 2008"))
182+
+ batting2008
183+
+ }
184+
Loading required package: RPostgreSQL
185+
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
186+
there is no package called ‘RPostgreSQL’
187+
Loading required package: RMySQL
188+
Loading required package: DBI
189+
Error: select is not a character vector
190+
Execution halted
191+
```
192+
193+
## ProjectTemplate (0.6)
194+
Maintainer: Kirill Mueller <krlmlr+r@mailbox.org>
195+
Bug reports: https://github.com/johnmyleswhite/ProjectTemplate/issues
196+
197+
```
198+
checking package dependencies ... NOTE
199+
Packages suggested but not available for checking: ‘RODBC’ ‘RPostgreSQL’
200+
```
201+
```
202+
checking dependencies in R code ... NOTE
203+
No Java runtime present, requesting install.
204+
See the information on DESCRIPTION files in the chapter ‘Creating R
205+
packages’ of the ‘Writing R Extensions’ manual.
206+
```
207+
208+
## quantmod (0.4-3)
209+
Maintainer: Joshua M. Ulrich <josh.m.ulrich@gmail.com>
210+
211+
```
212+
checking R code for possible problems ... NOTE
213+
Found the following calls to attach():
214+
File ‘quantmod/R/attachSymbols.R’:
215+
attach(NULL, pos = pos, name = DB$name)
216+
attach(NULL, pos = pos, name = DB$name)
217+
See section ‘Good practice’ in ‘?attach’.
218+
```
219+
220+
## sqldf (0.4-10)
221+
Maintainer: G. Grothendieck <ggrothendieck@gmail.com>
222+
Bug reports: http://groups.google.com/group/sqldf
223+
224+
```
225+
checking package dependencies ... NOTE
226+
Package suggested but not available for checking: ‘RPostgreSQL’
227+
```
228+
229+
## TSMySQL (2013.9-1)
230+
Maintainer: Paul Gilbert <pgilbert.ttv9z@ncf.ca>
231+
232+
```
233+
checking package dependencies ... ERROR
234+
Package required but not available: ‘TSsql’
235+
236+
See the information on DESCRIPTION files in the chapter ‘Creating R
237+
packages’ of the ‘Writing R Extensions’ manual.
238+
```
239+
240+
## TSsql (2014.4-1)
241+
Maintainer: Paul Gilbert <pgilbert.ttv9z@ncf.ca>
242+
243+
```
244+
checking R code for possible problems ... NOTE
245+
TSgetSQL: no visible global function definition for ‘as.zoo’
246+
TSgetSQL: no visible global function definition for ‘zoo’
247+
TSgetSQL: no visible global function definition for
248+
‘changeTSrepresentation’
249+
TSquery: no visible global function definition for ‘zoo’
250+
```
251+

0 commit comments

Comments
 (0)