Thanks @andresrcs. This is very strange.
Please note, that the above is a valid reproducbile example created with the reprex package and indeed, the reprex doesn't show the error message.
However, when I run (or source) the following (same) code in a fresh RStudio session:
# install.packages("arulesSequences")
library(arulesSequences)
#> Loading required package: arules
#> Loading required package: Matrix
#>
#> Attaching package: 'arules'
#> The following objects are masked from 'package:base':
#>
#> abbreviate, write
load(system.file("data", "zaki.rda", package = "arulesSequences", lib.loc = .libPaths()))
cspade(zaki, parameter = list(support = 0.1), control = list(verbose = TRUE))
... I am always getting the error below (last lines of the output shown)
3 4 -> 2 -> 1 -> 1 -- 1 1
4 -> 1 2 -> 1 -> 1 -- 1 1
3 -> 1 2 -> 1 -> 1 -- 1 1
3 4 -> 1 2 -> 1 -> 1 -- 1 1
3 4 -> 1 -> 1 -> 1 -- 1 1
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'C:\Users\MGO\AppData\Local\Temp\RtmpcrGqLe\cspadedb066d3533d.out': No such file or directory
As the error doesn't appear when using the reprex-pkg, I tried to investigate further.
As the reprex-pkg uses rmarkdown::render(), I tried to do the same as a workaround, but got the error again. Error message:
Quitting from lines 3-8 (test.spin.Rmd)
Error in file(con, "r") : cannot open the connection
The only further difference I could think of is the working directory when invoking reprex::reprex().