R package for export decomposition