GC content in sliding windows, in R

Edit the code and press Run, or Ctrl+Enter. R runs in your browser. It downloads (about 14 MB) when you first click in a box, so the first Run takes a few seconds. The boxes share one R session, so run them in order.