Skip to content

Commit

Permalink
version 0.1-2
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel authored and gaborcsardi committed Nov 2, 2008
1 parent 5d2fcf0 commit de008a2
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 12 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: RPostgreSQL
Version: 0.1-1
Version: 0.1-2
Title: R interface to the PostgreSQL database system
Author: Sameer Kumar Prayaga <sameer.bits@gmail.com> with mentor Dirk Eddelbuettel <edd@debian.org>
Maintainer: Dirk Eddelbuettel <edd@debian.org>
Expand All @@ -11,4 +11,4 @@ Depends: R (>= 2.7.0), methods, DBI (>= 0.1-4)
License: GPL-2
URL: http://www.stat.bell-labs.com/RS-DBI, http://www.postgresql.org
Collate: S4R.R zzz.R PostgreSQLSupport.R dbObjectId.R PostgreSQL.R
Packaged: Tue Oct 28 23:03:03 2008; edd
Packaged: Sun Nov 2 20:49:40 2008; edd
10 changes: 9 additions & 1 deletion configure.win
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
# empty ..., see src/Makevars.win
# configure.win for RPostgreSQL
# Dirk Eddelbuettel, 02 Nov 2008
#
# idea copied from XML/configure.win
if test -z "$PG_HOME" ; then
echo "Please define PG_HOME (i.e. directory above Postgresql headers and library)"
exit 1
fi

20 changes: 18 additions & 2 deletions inst/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
2008-11-02 Dirk Eddelbuettel <edd@debian.org>

* DESCRIPTION: CRAN release 0.1-2

* tests/*: Even more small fixes

* configure.win: Test for $PG_HOME

2008-10-28 Dirk Eddelbuettel <edd@debian.org>

* DESCRIPTION: CRAN release 0.1-1

* tests/*: More cleanup on the tests

* DESCRIPTION: URL fix

2008-10-21 Dirk Eddelbuettel <edd@debian.org>

* tests/*: Tests are now run if and only if the environment variables
Expand All @@ -8,11 +24,11 @@
it. For now, CRAN won't run this though and it is effectively
disabled in the default test during 'R CMD check' as the vars will
presumably not be set.

* configure{,.in}: no longer test for libpq.so as a second
confirmation as OS X has it as libpq.dylib and would hence always
fail. Thanks to Jan de Leeuw for the pointer.

2008-10-14 Dirk Eddelbuettel <edd@debian.org>

* Initial CRAN release 0.1-0
* DESCRIPTION: Initial CRAN release 0.1-0
2 changes: 1 addition & 1 deletion tests/dataTypeTests.Rout.save
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

R version 2.8.0 RC (2008-10-12 r46696)
R version 2.8.0 (2008-10-20)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

Expand Down
3 changes: 3 additions & 0 deletions tests/datetimeTests.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ if ((Sys.getenv("POSTGRES_USER") != "") &
## try to load our module and abort if this fails
stopifnot(require(RPostgreSQL))

## Force a timezone to make the tests comparable at different locations
Sys.setenv("TZ"="UTC")

## load the PostgresSQL driver
drv <- dbDriver("PostgreSQL")
## can't print result as it contains process id which changes print(summary(drv))
Expand Down
9 changes: 6 additions & 3 deletions tests/datetimeTests.Rout.save
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

R version 2.8.0 RC (2008-10-12 r46696)
R version 2.8.0 (2008-10-20)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

Expand Down Expand Up @@ -57,6 +57,9 @@ Type 'q()' to quit R.
+ ## try to load our module and abort if this fails
+ stopifnot(require(RPostgreSQL))
+
+ ## Force a timezone to make the tests comparable at different locations
+ Sys.setenv("TZ"="UTC")
+
+ ## load the PostgresSQL driver
+ drv <- dbDriver("PostgreSQL")
+ ## can't print result as it contains process id which changes print(summary(drv))
Expand Down Expand Up @@ -84,9 +87,9 @@ Loading required package: DBI
2 2000-01-02 03:04:05 2
name Sclass type len precision scale nullOK
1 tt POSIXct TIMESTAMP 8 -1 -1 TRUE
[1] "2008-07-01 14:15:16 CDT" "2000-01-02 03:04:05 CST"
[1] "2008-07-01 14:15:16 UTC" "2000-01-02 03:04:05 UTC"
[1] "POSIXt" "POSIXct"
Time difference of -3103.424 days
Time difference of -3103.466 days


**** Trying with timestamp with time zone
Expand Down
2 changes: 1 addition & 1 deletion tests/loadDriverAndConnect.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (Sys.getenv("POSTGRES_USER") != "" & Sys.getenv("POSTGRES_HOST") != "" & Sys.
user=Sys.getenv("POSTGRES_USER"),
password=Sys.getenv("POSTGRES_PASSWD"),
host=Sys.getenv("POSTGRES_HOST"),
dbname=Sys.getenv("POSTGRES_DATABSE"))
dbname=Sys.getenv("POSTGRES_DATABASE"))

## run a simple query and show the query result
res <- dbGetQuery(con, paste("select datname,encoding,datallowconn from pg_database",
Expand Down
4 changes: 2 additions & 2 deletions tests/loadDriverAndConnect.Rout.save
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

R version 2.8.0 RC (2008-10-12 r46696)
R version 2.8.0 (2008-10-20)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

Expand Down Expand Up @@ -41,7 +41,7 @@ Type 'q()' to quit R.
+ user=Sys.getenv("POSTGRES_USER"),
+ password=Sys.getenv("POSTGRES_PASSWD"),
+ host=Sys.getenv("POSTGRES_HOST"),
+ dbname=Sys.getenv("POSTGRES_DATABSE"))
+ dbname=Sys.getenv("POSTGRES_DATABASE"))
+
+ ## run a simple query and show the query result
+ res <- dbGetQuery(con, paste("select datname,encoding,datallowconn from pg_database",
Expand Down

0 comments on commit de008a2

Please sign in to comment.