Skip to content

Commit

Permalink
two simple new test files
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Dec 11, 2016
1 parent f5f1f00 commit 9aa9e7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions nanotime.Rproj
Expand Up @@ -14,3 +14,4 @@ LaTeX: pdfLaTeX

BuildType: Package
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd
4 changes: 4 additions & 0 deletions tests/POSIXt.R
@@ -0,0 +1,4 @@

library(nanotime)
pt <- nanotime(Sys.time())
print(showNanotime(pt, lcltzstr="America/Chicago", tgttzstr="America/Chicago"))
3 changes: 2 additions & 1 deletion tests/zooTests.R
Expand Up @@ -17,6 +17,7 @@ z <- zoo(cbind(x, y), dv)
z

now <- nanotime(as.numeric(Sys.time()))
dv <- now + 0:9
dv <- now + 1000*(0:9)
z <- zoo(cbind(x, y), dv)
z
showNanotime(dv)

0 comments on commit 9aa9e7f

Please sign in to comment.