Skip to content

Commit

Permalink
CRAN compatability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phonixor committed Jun 23, 2014
1 parent 5f99eed commit d5887e0
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
^.*\.Rproj$
^\.Rproj\.user$
notes.R
.~lock*
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Date: 2014-06-12
Author: Gerrit-Jan Schutten
Maintainer: Gerrit-Jan Schutten <[email protected]>
Contact: https://github.com/phonixor/readODS/
Source: https://github.com/phonixor/readODS/
Description: read ODS files and puts them into a list of data.frames unless a
specific sheet is specified then it will be put into a normal data.frame.
Depends:
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

export(getNrOfSheetsInODS)
export(read.ods)
import(XML)
1 change: 1 addition & 0 deletions R/readODS.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ library(XML)
#' @details
#' the data.frame contains all strings (not factors)
#'
#' @import XML
#' @export
read.ods=function(file=NULL, sheet=NULL, formulaAsFormula=F){
root=getODSRoot(file)
Expand Down
1 change: 1 addition & 0 deletions readODS.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
PackageRoxygenize: rd,collate,namespace
1 change: 0 additions & 1 deletion tests/testdata/.~lock.multisheet.ods#

This file was deleted.

2 changes: 1 addition & 1 deletion tests/testthat/test_readODS.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test_that("getNrOfSheetsInODS", {
expect_equal(getNrOfSheetsInODS(file),4)
file=paste("../testdata/sum.ods",sep="")
expect_equal(getNrOfSheetsInODS(file),1)
file=paste("../testdata/readODS test file google docs created.ods",sep="")
file=paste("../testdata/readODStestfilegoogledocscreated.ods",sep="")
expect_equal(getNrOfSheetsInODS(file),4)
# expect_equal(getNrOfSheetsInODS(file),3) # CRASH!!!
})
Expand Down

0 comments on commit d5887e0

Please sign in to comment.