Use Terra as an extension language for R