# NOT RUN {
file <- system.file("tests", "log_plot.jpeg", package = "xlsx")
wb <- createWorkbook()
sheet <- createSheet(wb, "Sheet1")
addPicture(file, sheet)
# don't forget to save the workbook!
# }
Run the code above in your browser using DataLab