Errors in running code in vignettes:
when running code in 'XLConnect.Rnw'

> if (!file.exists("figs")) dir.create("figs")

> require(XLConnect)
Loading required package: XLConnect
XLConnect 1.0.4 by Mirai Solutions GmbH [aut],
  Martin Studer [cre],
  The Apache Software Foundation [ctb, cph] (Apache POI),
  Graph Builder [ctb, cph] (Curvesapi Java library),
  Brett Woolridge [ctb, cph] (SparseBitSet Java library)
https://mirai-solutions.ch
https://github.com/miraisolutions/xlconnect

> if (file.exists("XLConnectExample1.xlsx")) file.remove("XLConnectExample1.xlsx")

> require(XLConnect)

> wb <- loadWorkbook("XLConnectExample1.xlsx", create = TRUE)

> createSheet(wb, name = "chickSheet")

> writeWorksheet(wb, ChickWeight, sheet = "chickSheet", 
+     startRow = 3, startCol = 4)

> saveWorkbook(wb)

> if (file.exists("XLConnectExample2.xlsx")) file.remove("XLConnectExample2.xlsx")

> require(XLConnect)

> writeWorksheetToFile("XLConnectExample2.xlsx", data = ChickWeight, 
+     sheet = "chickSheet", startRow = 3, startCol = 4)

> if (file.exists("XLConnectExample3.xlsx")) file.remove("XLConnectExample3.xlsx")

> require(XLConnect)

> wb <- loadWorkbook("XLConnectExample3.xlsx", create = TRUE)

> createSheet(wb, name = "womenData")

> createName(wb, name = "womenName", formula = "womenData!$C$5", 
+     overwrite = TRUE)

> writeNamedRegion(wb, women, name = "womenName")

> saveWorkbook(wb)

> if (file.exists("XLConnectExample4.xlsx")) file.remove("XLConnectExample4.xlsx")

> require(XLConnect)

> writeNamedRegionToFile("XLConnectExample4.xlsx", women, 
+     name = "womenName", formula = "womenData!$C$5")

> require(XLConnect)

> wb <- loadWorkbook("XLConnectExample1.xlsx", create = TRUE)

> data <- readWorksheet(wb, sheet = "chickSheet", startRow = 0, 
+     endRow = 10, startCol = 0, endCol = 0)

> data
  weight Time Chick Diet
1     42    0     1    1
2     51    2     1    1
3     59    4     1    1
4     64    6     1    1
5     76    8     1    1
6     93   10     1    1
7    106   12     1    1

> require(XLConnect)

> data <- readWorksheetFromFile("XLConnectExample1.xlsx", 
+     sheet = "chickSheet", startRow = 0, endRow = 10, startCol = 0, 
+     endCol = 0)

> require(XLConnect)

> wb <- loadWorkbook("XLConnectExample3.xlsx", create = TRUE)

> data <- readNamedRegion(wb, name = "womenName")

> data
   height weight
1      58    115
2      59    117
3      60    120
4      61    123
5      62    126
6      63    129
7      64    132
8      65    135
9      66    139
10     67    142
11     68    146
12     69    150
13     70    154
14     71    159
15     72    164

> require(XLConnect)

> data <- readNamedRegionFromFile("XLConnectExample3.xlsx", 
+     "womenName")

> require(XLConnect)

> require(zoo)
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric


> require(ggplot2)
Loading required package: ggplot2
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called 'ggplot2'

> curr <- XLConnect::swissfranc

> curr <- curr[order(curr$Date), ]

> if (file.exists("swiss_franc.xlsx")) file.remove("swiss_franc.xlsx")

> wbFilename <- "swiss_franc.xlsx"

> wb <- loadWorkbook(wbFilename, create = TRUE)

> sheet <- "Swiss_Franc"

> createSheet(wb, name = sheet)

> dataName <- "currency"

> nameLocation <- paste(sheet, "$A$1", sep = "!")

> createName(wb, name = dataName, formula = nameLocation)

> setStyleAction(wb, XLC$STYLE_ACTION.DATA_FORMAT_ONLY)

> setDataFormatForType(wb, type = XLC$DATA_TYPE.NUMERIC, 
+     format = "0.0000")

> writeNamedRegion(wb, data = curr, name = dataName, 
+     header = TRUE)

> saveWorkbook(wb)

> wb <- loadWorkbook(wbFilename)

> csHeader <- createCellStyle(wb, name = "header")

> setFillPattern(csHeader, fill = XLC$FILL.SOLID_FOREGROUND)

> setFillForegroundColor(csHeader, color = XLC$COLOR.GREY_25_PERCENT)

> csDate <- createCellStyle(wb, name = "date")

> setDataFormat(csDate, format = "yyyy-mm-dd")

> csHlight <- createCellStyle(wb, name = "highlight")

> setFillPattern(csHlight, fill = XLC$FILL.SOLID_FOREGROUND)

> setFillForegroundColor(csHlight, color = XLC$COLOR.CORNFLOWER_BLUE)

> setCellStyle(wb, sheet = sheet, row = 1, col = seq(length.out = ncol(curr)), 
+     cellstyle = csHeader)

> allRows <- seq(length = nrow(curr)) + 1

> setCellStyle(wb, sheet = sheet, row = allRows, col = 1, 
+     cellstyle = csDate)

> setColumnWidth(wb, sheet = sheet, column = 1, width = 2800)

> idx <- rollapply(curr[, -1], width = 2, FUN = function(x) abs(x[2]/x[1] - 
+     1), by.column = TRUE) > 0.02

> idx <- rbind(rep(FALSE, ncol(idx)), idx)

> widx <- lapply(as.data.frame(idx), which)

> for (i in seq(along = widx)) {
+     if (length(widx[[i]]) > 0) {
+         setCellStyle(wb, sheet = sheet, row = widx[[i]] + 1, 
+             col  .... [TRUNCATED] 

> saveWorkbook(wb)

> wb <- loadWorkbook(wbFilename)

> currencies <- names(curr)[-1]

> gcurr <- reshape(curr, varying = currencies, direction = "long", 
+     v.names = "Value", times = currencies, timevar = "Currency")

> png(filename = "swiss_franc.png", width = 800, height = 600)

> p <- ggplot(gcurr, aes(Date, Value, colour = Currency)) + 
+     geom_line() + stat_smooth(method = "loess") + scale_y_continuous("Exchange Rate CHF ..." ... [TRUNCATED] 

  When sourcing 'XLConnect.R':
Error: could not find function "ggplot"
Execution halted

  'XLConnect.Rnw' using 'UTF-8'... failed
  'XLConnectImpatient.Rnw' using 'latin1'... OK