diff --git a/README.Rmd b/README.Rmd index 2a3ca043..5aecc573 100644 --- a/README.Rmd +++ b/README.Rmd @@ -149,7 +149,7 @@ Here are some other packages with functionality that is complementary to readxl __Writing Excel files__: The example files `datasets.xlsx` and `datasets.xls` were created with the help of [openxlsx](https://CRAN.R-project.org/package=openxlsx) (and Excel). openxlsx provides "a high level interface to writing, styling and editing worksheets". ```{r eval = FALSE} -l <- list(iris = iris, mtcars = mtcars, chickwts = chickwts, quakes = quakes) +l <- list(mtcars = mtcars, chickwts = chickwts, quakes = quakes) openxlsx::write.xlsx(l, file = "inst/extdata/datasets.xlsx") ``` diff --git a/README.md b/README.md index 544bc94c..b0617ad3 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ readxl_example() #> [5] "deaths.xls" "deaths.xlsx" "geometry.xls" "geometry.xlsx" #> [9] "type-me.xls" "type-me.xlsx" readxl_example("clippy.xls") -#> [1] "/private/tmp/RtmpM1GkLC/temp_libpatha8e46f7f62bf/readxl/extdata/clippy.xls" +#> [1] "/Library/Frameworks/R.framework/Versions/4.2/Resources/library/readxl/extdata/clippy.xls" ``` `read_excel()` reads both xls and xlsx files and detects the format from @@ -249,7 +249,7 @@ openxlsx provides “a high level interface to writing, styling and editing worksheets”. ``` r -l <- list(iris = iris, mtcars = mtcars, chickwts = chickwts, quakes = quakes) +l <- list(mtcars = mtcars, chickwts = chickwts, quakes = quakes) openxlsx::write.xlsx(l, file = "inst/extdata/datasets.xlsx") ```