diff --git a/.Rbuildignore b/.Rbuildignore new file mode 100644 index 0000000..91114bf --- /dev/null +++ b/.Rbuildignore @@ -0,0 +1,2 @@ +^.*\.Rproj$ +^\.Rproj\.user$ diff --git a/.gitignore b/.gitignore index 42effd3..6c38bf7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .Rhistory # Example code in package build process -*-Ex.R \ No newline at end of file +*-Ex.R +.Rproj.user diff --git a/inst/doc/teradataR.pdf b/inst/doc/teradataR.pdf deleted file mode 100755 index 9f1efb8..0000000 Binary files a/inst/doc/teradataR.pdf and /dev/null differ diff --git a/man/INITCAP.Rd b/man/INITCAP.Rd index 1b4f258..6c99b28 100644 --- a/man/INITCAP.Rd +++ b/man/INITCAP.Rd @@ -38,8 +38,11 @@ Todd Brye, Erin Cole %% ~~objects to See Also as \code{\link{help}}, ~~~ } \examples{ +\dontrun{ +tdf <- tdQuery("SELECT * FROM customer") tdf["col2"] <- INITCAP(tdf["col1"]) } +} % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. \keyword{ ~kwd1 }% use one of RShowDoc("KEYWORDS") diff --git a/man/LPAD.Rd b/man/LPAD.Rd index 0e86e96..b3a96f6 100644 --- a/man/LPAD.Rd +++ b/man/LPAD.Rd @@ -44,7 +44,9 @@ Todd Brye, Erin Cole %% ~~objects to See Also as \code{\link{help}}, ~~~ } \examples{ -tdf["col2"] <- LPAD(tdf["col1", 15, " "]) +\dontrun{ +tdf["col2"] <- LPAD(tdf["col1", 15, " "]) +} } % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. diff --git a/man/LTRIM.Rd b/man/LTRIM.Rd index 745915a..2557ab5 100644 --- a/man/LTRIM.Rd +++ b/man/LTRIM.Rd @@ -39,7 +39,9 @@ Todd Brye, Erin Cole %% ~~objects to See Also as \code{\link{help}}, ~~~ } \examples{ -tdf["col2"] <- LTRIM(tdf["col1"]) +\dontrun{ +tdf["col2"] <- LTRIM(tdf["col1"]) +} } % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. diff --git a/man/RPAD.Rd b/man/RPAD.Rd index a1070c7..b0034e0 100644 --- a/man/RPAD.Rd +++ b/man/RPAD.Rd @@ -44,8 +44,10 @@ Todd Brye, Erin Cole %% ~~objects to See Also as \code{\link{help}}, ~~~ } \examples{ +\dontrun{ tdf["col2"] <- RPAD(tdf["col1", 15, " "]) -} +}} + % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. \keyword{ ~kwd1 }% use one of RShowDoc("KEYWORDS") diff --git a/man/RTRIM.Rd b/man/RTRIM.Rd index 9bffe06..d08543f 100644 --- a/man/RTRIM.Rd +++ b/man/RTRIM.Rd @@ -38,8 +38,9 @@ Todd Brye, Erin Cole %% ~~objects to See Also as \code{\link{help}}, ~~~ } \examples{ +\dontrun{ tdf["col2"] <- RTRIM(tdf["col1"]) -} +}} % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. \keyword{ ~kwd1 }% use one of RShowDoc("KEYWORDS") diff --git a/man/on.Rd b/man/on.Rd index 6065246..1987ca1 100644 --- a/man/on.Rd +++ b/man/on.Rd @@ -65,7 +65,7 @@ Erin Cole %% ~~objects to See Also as \code{\link{help}}, ~~~ } \examples{ -o <- on(target="select *" from="tab1", partition="any") +o <- on(target="select *", from="tab1", partition="any") } % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. diff --git a/man/td.CalcMatrix.Rd b/man/td.CalcMatrix.Rd index ba98517..e320f14 100644 --- a/man/td.CalcMatrix.Rd +++ b/man/td.CalcMatrix.Rd @@ -59,11 +59,13 @@ Erin Cole %% ~~objects to See Also as \code{\link{help}}, ~~~ } \examples{ +\dontrun{ on2 <- on(target= "select * from tab1") query <- td.CalcMatrix(selectPhrase="select session as ampkey, D1.* from TD_SYSFNLIB.calcmatrix", ons=on1, phase="LOCAL", as="D1") res <- tdQuery(query) print(res) } +} % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. \keyword{ ~kwd1 }% use one of RShowDoc("KEYWORDS") diff --git a/man/td.ExecR.Rd b/man/td.ExecR.Rd index 06a3138..683e268 100644 --- a/man/td.ExecR.Rd +++ b/man/td.ExecR.Rd @@ -53,11 +53,13 @@ Erin Cole \code{\link{on}} } \examples{ +\dontrun{ on1 <- on(target="select *", from="tab1", hash="c1", local_order="c2") query <- td.ExecR(selectPhrase="select distinct * from TD_SYSGPL.ExecR", ons=on1, contract="~/Documents/contract.txt", operator="~/Documents/operator.txt") res <- tdQuery(query) print(res) } +} % Add one or more standard keywords, see file 'KEYWORDS' in the % R documentation directory. \keyword{ ~kwd1 }% use one of RShowDoc("KEYWORDS") diff --git a/teradataR.Rproj b/teradataR.Rproj new file mode 100644 index 0000000..21a4da0 --- /dev/null +++ b/teradataR.Rproj @@ -0,0 +1,17 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX + +BuildType: Package +PackageUseDevtools: Yes +PackageInstallArgs: --no-multiarch --with-keep.source