recreate r cookbook