[R-pkg-devel] warning from win_build
Ben Bolker
bbolker at gmail.com
Thu Dec 29 19:20:59 CET 2016
I think this is a ggplot2-related issue. Matt Dowle posted about it:
http://blog.h2o.ai/2016/12/behind-the-scenes-of-cran/
On 16-12-29 01:16 PM, Roy Mendelssohn - NOAA Federal wrote:
> Hi All:
>
> I am working on a new submission of my xtractomatic package (the
> main change being the use of https). I develop on a Mac. When I run
> on the Mac:
>
> devtools::check()
>
> I get no errors, notes, or warnings. However, when I run
> devtools::build_win(), the response I get back isL
>
>
>> * checking for unstated dependencies in vignettes ... OK * checking
>> package vignettes in 'inst/doc' ... OK * checking re-building of
>> vignette outputs ... WARNING Error in re-building vignettes: ...
>> Quitting from lines 248-261 (Usingxtractomatic.Rmd) Error:
>> processing vignette 'Usingxtractomatic.Rmd' failed with
>> diagnostics: (converted from warning) Calling 'structure(NULL, *)'
>> is deprecated, as NULL cannot have attributes. Consider
>> 'structure(list(), *)' instead. Execution halted
>>
>
> So this error is from my Vignette. The offending lines appear to
> be:
>
>> ```{r topotagPlot, fig.align = 'center', fig.width = 6, fig.height
>> = 4, warning = FALSE} require("ggplot2") alldata <- cbind(tagData,
>> topo) alldata$lon <- alldata$lon - 360 z <- ggplot(alldata, aes(x =
>> lon,y = lat)) + geom_point(aes(colour = mean), size = 2.) +
>> scale_shape_manual(values = c(19, 1)) z + geom_polygon(data = w,
>> aes(x = long, y = lat, group = group), fill = "grey80") +
>> theme_bw() + scale_colour_gradient("Depth") + coord_fixed(1.3, xlim
>> = xlim, ylim = ylim) + ggtitle("Bathymetry at marlin tag
>> locations")
>>
>> ```
>>
>
>
> Now the vignette builds fine on my machine, and I can run it by
> "hand" (as an R Notebook, executing each chunk) and it works also.
> Looking at the offending code chunk, I can honestly say I have no
> idea what the error message is referring to. When I run by hand,
> I have checked that both tagData and topo are properly defined. But
> is that the problem, is the error message from the cbind?
>
> Thanks for any help.
>
> -Roy
>
>
> ********************** "The contents of this message do not reflect
> any position of the U.S. Government or NOAA." **********************
> Roy Mendelssohn Supervisory Operations Research Analyst NOAA/NMFS
> Environmental Research Division Southwest Fisheries Science Center
> ***Note new street address*** 110 McAllister Way Santa Cruz, CA
> 95060 Phone: (831)-420-3666 Fax: (831) 420-3980 e-mail:
> Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/
>
> "Old age and treachery will overcome youth and skill." "From those
> who have been given much, much will be expected" "the arc of the
> moral universe is long, but it bends toward justice" -MLK Jr.
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
More information about the R-package-devel
mailing list