- using R Under development (unstable) (2019-11-29 r77486)
- using platform: x86_64-w64-mingw32 (64-bit)
- using session charset: ISO8859-1
- checking for file 'blastula/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'blastula' version '0.3.1'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'blastula' can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [8s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking R/sysdata.rda ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... ERROR
Running examples in 'blastula-Ex.R' failed
The error most likely occurred in:
> ### Name: add_cta_button
> ### Title: Create an HTML fragment for a CTA button
> ### Aliases: add_cta_button
>
> ### ** Examples
>
> # Create the button as an HTML fragment
> cta_button <-
+ add_cta_button(
+ url = "http://www.website.net",
+ text = "Press This Button"
+ )
>
> # Include the button in the email
> # message body by using it as part of
> # a vector inside of `md()`
> email <-
+ compose_email(
+ body = md(
+ c(
+ "Pressing the button will take
+ you to an example website",
+ cta_button
+ )
+ )
+ )
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called 'stringi'
Calls: compose_email ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [14s] ERROR
Running 'spelling.R' [1s]
Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(blastula)
>
> test_check("blastula")
-- 1. Error: composing a simple message is possible (@test-compose_email.R#6) -
there is no package called 'stringi'
Backtrace:
1. blastula::compose_email()
2. email_message$html_str
10. stringr::str_detect(., "<img cid=.*? src=\"data:image/(png|jpeg);base64,.*?\"")
11. base::getExportedValue(pkg, name)
12. base::asNamespace(ns)
13. base::getNamespace(ns)
14. base::loadNamespace(name)
16. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
17. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
18. base:::withOneRestart(expr, restarts[[1L]])
19. base:::doWithOneRestart(return(expr), restart)
-- 2. Error: email components appear in the HTML message (@test-compose_email.R#
there is no package called 'stringi'
Backtrace:
1. blastula::compose_email(body = "test_text_in_body")
2. email_message$html_str
10. stringr::str_detect(., "<img cid=.*? src=\"data:image/(png|jpeg);base64,.*?\"")
11. base::getExportedValue(pkg, name)
12. base::asNamespace(ns)
13. base::getNamespace(ns)
14. base::loadNamespace(name)
16. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
17. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
18. base:::withOneRestart(expr, restarts[[1L]])
19. base:::doWithOneRestart(return(expr), restart)
-- 3. Error: composing a message with local inline images is possible (@test-com
there is no package called 'stringi'
Backtrace:
1. blastula::compose_email(body = md(body_input))
2. email_message$html_str
10. stringr::str_detect(., "<img cid=.*? src=\"data:image/(png|jpeg);base64,.*?\"")
11. base::getExportedValue(pkg, name)
12. base::asNamespace(ns)
13. base::getNamespace(ns)
14. base::loadNamespace(name)
16. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
17. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
18. base:::withOneRestart(expr, restarts[[1L]])
19. base:::doWithOneRestart(return(expr), restart)
-- 4. Error: the `get_html_str()` function returns the expected output (@test-ge
there is no package called 'stringi'
Backtrace:
1. blastula::compose_email(body = "test")
2. email_message$html_str
10. stringr::str_detect(., "<img cid=.*? src=\"data:image/(png|jpeg);base64,.*?\"")
11. base::getExportedValue(pkg, name)
12. base::asNamespace(ns)
13. base::getNamespace(ns)
14. base::loadNamespace(name)
16. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
17. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
18. base:::withOneRestart(expr, restarts[[1L]])
19. base:::doWithOneRestart(return(expr), restart)
-- 5. Error: URL encoding is correctly decoded (@test-html_manip.R#39) --------
there is no package called 'stringi'
Backtrace:
1. blastula:::cid_images("url_encoding.html")
2. blastula:::replace_attr(...)
3. blastula:::gfsub(...)
8. blastula:::func(html_unescape(attr_val))
9. stringr::str_match
10. base::getExportedValue(pkg, name)
11. base::asNamespace(ns)
12. base::getNamespace(ns)
13. base::loadNamespace(name)
15. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
16. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
17. base:::withOneRestart(expr, restarts[[1L]])
18. base:::doWithOneRestart(return(expr), restart)
-- 6. Error: File URI parsing works correctly (@test-html_manip.R#63) ---------
there is no package called 'stringi'
Backtrace:
1. testthat::expect_identical(...)
4. blastula:::file_uri_to_filepath("file:///foo/bar")
5. stringr::str_match
6. base::getExportedValue(pkg, name)
7. base::asNamespace(ns)
8. base::getNamespace(ns)
9. base::loadNamespace(name)
11. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
12. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
13. base:::withOneRestart(expr, restarts[[1L]])
14. base:::doWithOneRestart(return(expr), restart)
-- 7. Error: varying formats for recipient lists work as expected (@test-mime.R#
there is no package called 'stringi'
Backtrace:
1. blastula::compose_email()
2. email_message$html_str
10. stringr::str_detect(., "<img cid=.*? src=\"data:image/(png|jpeg);base64,.*?\"")
11. base::getExportedValue(pkg, name)
12. base::asNamespace(ns)
13. base::getNamespace(ns)
14. base::loadNamespace(name)
16. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
17. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
18. base:::withOneRestart(expr, restarts[[1L]])
19. base:::doWithOneRestart(return(expr), restart)
-- 8. Error: knitr_sidecar_prefix preconditions hold (@test-utils.R#12) -------
there is no package called 'stringi'
Backtrace:
1. rmarkdown::render(rmd_path, quiet = TRUE)
2. knitr::knit(...)
3. knitr:::process_file(text, output)
4. knitr:::split_file(lines = text)
5. base::lapply(...)
6. knitr:::FUN(X[[i]], ...)
7. knitr:::parse_inline(g, patterns)
8. stringr::str_locate_all
9. base::getExportedValue(pkg, name)
10. base::asNamespace(ns)
11. base::getNamespace(ns)
12. base::loadNamespace(name)
14. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
15. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
16. base:::withOneRestart(expr, restarts[[1L]])
17. base:::doWithOneRestart(return(expr), restart)
== testthat results ===========================================================
[ OK: 150 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
1. Error: composing a simple message is possible (@test-compose_email.R#6)
2. Error: email components appear in the HTML message (@test-compose_email.R#50)
3. Error: composing a message with local inline images is possible (@test-compose_email.R#156)
4. Error: the `get_html_str()` function returns the expected output (@test-get_html_str.R#6)
5. Error: URL encoding is correctly decoded (@test-html_manip.R#39)
6. Error: File URI parsing works correctly (@test-html_manip.R#63)
7. Error: varying formats for recipient lists work as expected (@test-mime.R#61)
8. Error: knitr_sidecar_prefix preconditions hold (@test-utils.R#12)
Error: testthat unit tests failed
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [5s] WARNING
Error(s) in re-building vignettes:
--- re-building 'sending_using_smtp.Rmd' using rmarkdown
Error: processing vignette 'sending_using_smtp.Rmd' failed with diagnostics:
there is no package called 'stringi'
--- failed re-building 'sending_using_smtp.Rmd'
--- re-building 'simple_composition.Rmd' using rmarkdown
Error: processing vignette 'simple_composition.Rmd' failed with diagnostics:
there is no package called 'stringi'
--- failed re-building 'simple_composition.Rmd'
SUMMARY: processing the following files failed:
'sending_using_smtp.Rmd' 'simple_composition.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... OK
- DONE
Status: 2 ERRORs, 1 WARNING