R package flycircuit