Running examples in ‘animation-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ani.record
> ### Title: Record and replay animations
> ### Aliases: ani.record ani.replay
> 
> ### ** Examples
> 
> library(animation)
> 
> n = 20
> x = sort(rnorm(n))
> y = rnorm(n)
> ## set up an empty frame, then add points one by one
> par(bg = "white")  # ensure the background color is white
> plot(x, y, type = "n")
> 
> ani.record(reset = TRUE)  # clear history before recording
> 
> for (i in 1:n) {
+     points(x[i], y[i], pch = 19, cex = 2)
+     ani.record()  # record the current frame
+ }
> 
> ## now we can replay it, with an appropriate pause between frames
> oopts = ani.options(interval = 0.5)
> ani.replay()
> 
> ## or export the animation to an HTML page
> saveHTML(ani.replay(), img.name = "record_plot")
Warning in file.copy(system.file("misc", "scianimator", c("js", "css"),  :
  problem copying /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/animation/misc/scianimator/js/jquery.scianimator.min.js to ./js/jquery.scianimator.min.js: Permission denied
Warning in file.copy(system.file("misc", "scianimator", c("js", "css"),  :
  problem copying /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/animation/misc/scianimator/js/template.js to ./js/template.js: Permission denied
Warning in file.copy(system.file("misc", "scianimator", c("js", "css"),  :
  problem copying /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/animation/misc/scianimator/js/jquery-1.4.4.min.js to ./js/jquery-1.4.4.min.js: Permission denied
Warning in file.copy(system.file("misc", "scianimator", c("js", "css"),  :
  problem copying /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/animation/misc/scianimator/css/scianimator.light.css to ./css/scianimator.light.css: Permission denied
Warning in file.copy(system.file("misc", "scianimator", c("js", "css"),  :
  problem copying /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/animation/misc/scianimator/css/styles.css to ./css/styles.css: Permission denied
Warning in file.copy(system.file("misc", "scianimator", c("js", "css"),  :
  problem copying /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/animation/misc/scianimator/css/scianimator.css to ./css/scianimator.css: Permission denied
Warning in file.copy(system.file("misc", "scianimator", c("js", "css"),  :
  problem copying /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/animation/misc/scianimator/css/scianimator.blue.css to ./css/scianimator.blue.css: Permission denied
Warning in file.copy(system.file("misc", "scianimator", c("js", "css"),  :
  problem copying /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/animation/misc/scianimator/css/scianimator.dark.css to ./css/scianimator.dark.css: Permission denied
Warning in file.copy(system.file("misc", "scianimator", c("js", "css"),  :
  problem copying /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/animation/misc/scianimator/css/reset.css to ./css/reset.css: Permission denied
Warning in file(con, "w") :
  cannot open file './js/record_plot.js': Permission denied
Error in file(con, "w") : cannot open the connection
Calls: saveHTML -> writeLines -> file
Execution halted