search for: reoygen

Displaying 2 results from an estimated 2 matches for "reoygen".

Did you mean: keygen
2020 Oct 31
0
[R-sig-Geo] raster::levels() not working in packaged function.
Many thanks, That worked, since the NAMESPACE file incudes a warning about editing it directly I ysed the reoygen tag in the fucntion script #' @import raster. On Sun, 1 Nov 2020 at 00:18, Marcelino de la Cruz Rot < marcelino.delacruz at urjc.es> wrote: > Maybe including > > import(raster) > > or > > importFrom("raster", "levels") > > in the package NA...
2020 Oct 31
2
raster::levels() not working in packaged function.
Apologies, I cannot see how to make a rero for this issue. I have a function that uses levels(r) tor return the RAT of a raster "r" when the function is sourced from a script source(".\R\function.r") it works fine. when the function is built into a package and sourced from there library(mypackage) using the same script file to make the package levels(r)[[1]] the same line