Re: [R-pkg-devel] Question "no visible binding for '<<-' assignment"

2021-04-14 Thread Duncan Murdoch
On 14/04/2021 12:11 p.m., Federico Zanghi wrote: Hi :) I'm here because i have a problem with my package...i have the function "SARMAX.refinement", clearly the problem is that i can't assign a variable on global environment from a function. So when i CHECK the package it gives me 1 Note that doe

Re: [R-pkg-devel] Another newbie question: vignettes not appearing in GitHub hosted package

2021-04-14 Thread Gábor Csárdi
remotes::install_github() is a function aimed at developers that need the unreleased version of a package for testing or other dev purposes. In these cases you don't usually need the vignettes. hence the default. Gabor On Wed, Apr 14, 2021 at 8:17 PM Chris Evans wrote: > > Oh no, how embarrassin

Re: [R-pkg-devel] Another newbie question: vignettes not appearing in GitHub hosted package

2021-04-14 Thread Chris Evans
Oh no, how embarrassing! But in my defence, am I the only one who thinks having build_vignettes = FALSE as default is a bit anti-vignettes?! Many thanks both, Chris - Original Message - > From: "Zhian N. Kamvar" > To: "r-package-devel" > Sent: Wednesday, 14 April, 2021 17:57:11 >

Re: [R-pkg-devel] Another newbie question: vignettes not appearing in GitHub hosted package

2021-04-14 Thread Gábor Csárdi
remotes::install_github() does not build the vignettes by default, you can use the build_opts argument to change this. Gabor On Wed, Apr 14, 2021 at 6:53 PM Chris Evans wrote: > > As ever, my package is https://github.com/cpsyctc/CECPfuns and I am building > withing Rstudio 1.4.1103 > > I am ai

Re: [R-pkg-devel] Another newbie question: vignettes not appearing in GitHub hosted package

2021-04-14 Thread Zhian N. Kamvar
Hi Chris, You need to add the `build_vignettes = TRUE` argument to `install_github()`. On 4/14/21 9:53 AM, Chris Evans wrote: As ever, my package is https://github.com/cpsyctc/CECPfuns and I am building withing Rstudio 1.4.1103 I am aiming for the package to have fairly comprehensive vignette

[R-pkg-devel] Another newbie question: vignettes not appearing in GitHub hosted package

2021-04-14 Thread Chris Evans
As ever, my package is https://github.com/cpsyctc/CECPfuns and I am building withing Rstudio 1.4.1103 I am aiming for the package to have fairly comprehensive vignettes and there are four now, but two are very incomplete. The problem I have may relate to https://github.com/Kenkleinman/cluste

[R-pkg-devel] Question "no visible binding for '<<-' assignment"

2021-04-14 Thread Federico Zanghi
Hi :) I'm here because i have a problem with my package...i have the function "SARMAX.refinement", clearly the problem is that i can't assign a variable on global environment from a function. So when i CHECK the package it gives me 1 Note that doesn't make me publish the package :( The Note is th

Re: [R-pkg-devel] Problem with S4 method for plotting a raster file

2021-04-14 Thread Duncan Murdoch
On 14/04/2021 9:26 a.m., Jacob Nabe-Nielsen wrote: Hi Duncan Thanks a lot for the help. This works, but unfortunately it does not result in a landscape which is cropped to the extent of the bathymetry raster file... it would be nice to be able to do that as well (as you can if you use the 'ra

Re: [R-pkg-devel] Problem with S4 method for plotting a raster file

2021-04-14 Thread Jacob Nabe-Nielsen
Dear Georgi Thanks a lot for the suggestion. I have now imported rgdal and moved it from Suggests of Imports. However, this did not solve my problem. I also tried importing 'plot' directly from rgdal, but then I got the error: object ‘plot’ is not exported by 'namespace:rgdal' Best, Jacob > O

Re: [R-pkg-devel] Problem with S4 method for plotting a raster file

2021-04-14 Thread Jacob Nabe-Nielsen
Hi Duncan Thanks a lot for the help. This works, but unfortunately it does not result in a landscape which is cropped to the extent of the bathymetry raster file... it would be nice to be able to do that as well (as you can if you use the 'raster' and 'sp' packages). Best wishes, Jacob On 14

Re: [R-pkg-devel] Problem with S4 method for plotting a raster file

2021-04-14 Thread Georgi Boshnakov
> library(DEPONS2R) > > data("bathymetry") > plot(bathymetry) > data("coastline") > library(rgdal) > # Change projection of coastline to match that of bathymetry data > coastline2 <- spTransform(coastline, crs(bathymetry)) plot(coastline2, > add=TRUE, col="lightyellow2") The inclusion of 'librar

Re: [R-pkg-devel] Problem with S4 method for plotting a raster file

2021-04-14 Thread Duncan Murdoch
On 14/04/2021 5:41 a.m., Jacob Nabe-Nielsen wrote: Dear all, I have just discovered an error in a package that I have already uploaded to CRAN, and cannot figure out how to fix it. All help will be greatly appreciated. The package is called DEPONS2R, and is available from: https://cran.r-project

[R-pkg-devel] Problem with S4 method for plotting a raster file

2021-04-14 Thread Jacob Nabe-Nielsen
Dear all, I have just discovered an error in a package that I have already uploaded to CRAN, and cannot figure out how to fix it. All help will be greatly appreciated. The package is called DEPONS2R, and is available from: https://cran.r-project.org/web/packages/DEPONS2R/index.html The problem is

Re: [R-pkg-devel] checking LazyData ... WARNING

2021-04-14 Thread Sebastian Meyer
Am 14.04.21 um 13:11 schrieb Rafael CM: > Dear all, > I am having the following warning when loading my rpackage: > > * checking LazyData ... WARNING > LazyData DB of 62.1 MB without LazyDataCompression set > > > I can't get to fix this problem. I have tried the tools option to optimize > savi

Re: [R-pkg-devel] checking LazyData ... WARNING

2021-04-14 Thread Rafael CM
checking LazyData ... WARNING LazyData DB of 62.1 MB without LazyDataCompression set See �1.1.6 of 'Writing R Extensions' On Wed, Apr 14, 2021 at 1:38 PM Uwe Ligges wrote: > > > On 14.04.2021 00:43, Rafael CM wrote: > > Dear all, > > I am submitting the RTIGER package and I have the follow

Re: [R-pkg-devel] checking LazyData ... WARNING

2021-04-14 Thread Uwe Ligges
On 14.04.2021 00:43, Rafael CM wrote: Dear all, I am submitting the RTIGER package and I have the following warning: checking LazyData ... WARNING A full message would be needed Best, Uwe Ligges I have saved the data with the optimal compression format. Could someone help me? Best,

[R-pkg-devel] checking LazyData ... WARNING

2021-04-14 Thread Rafael CM
Dear all, I am having the following warning when loading my rpackage: * checking LazyData ... WARNING LazyData DB of 62.1 MB without LazyDataCompression set I can't get to fix this problem. I have tried the tools option to optimize saving. I used different types of compressions. I also have se

Re: [R-pkg-devel] error messages

2021-04-14 Thread Uwe Ligges
Or simply navigate to the install log which is avaiable from the links you got. Best, Uwe Ligges On 14.04.2021 03:47, Dirk Eddelbuettel wrote: On 14 April 2021 at 01:03, csmatyi wrote: | Debian | | * using log directory ‘/srv/hornik/tmp/CRAN/hybridogram.Rcheck’ | * using R Under development (