Re: [R-pkg-devel] installed package size problem on Mac but not Linux nor Windows

2020-09-22 Thread Spencer Graves




On 2020-09-22 02:22, Hugh Parsonage wrote:
One of your vignettes is a 52-page pdf. It may be more suitable to 
provide a link to it rather than distributing it with the package, or 
distribute an excerpt.


Some the images in the PDFs could be PDFs themselves, or be pngs with 
lower resolution.



	  Yes.  That's done by default by "R CMD build / check" on my Mac but 
not on Linux nor Windows 10.  I'm not sure, but I think this problem is 
fairly recent:  I think that "R CMD build / check" on Mac used to run 
like on Linux and Win10 without creating these huge PDF and HTML files 
from vignettes.  If it's only the figures, I would naively think there 
should be an option to make sure that the figures were coded in svg so 
it wouldn't take up as much space.  Or, failing that, if the problem is 
the figures, I can code it so the figures don't plot unless people run 
them manually.  Or maybe I shouldn't be trying to distribute vignettes 
like this.



  Thanks for the reply.
  Spencer



On Tue, 22 Sep 2020 at 5:04 pm, Spencer Graves 
> wrote:


Hello, All:


           R CMD check of "https://github.com/sbgraves237/Ecfun"; on
Mac produces
the following NOTE:


* checking installed package size ... NOTE
    installed size is  5.9Mb
    sub-directories of 1Mb or more:
      doc   5.2Mb


           It doesn't do that with Travis CI[1] nor on a Windows 10
computer I
have.  "Writing R Extensions" suggested using "--compact-vignettes"
with
qpdf.  That changed nothing.


           Suggestions?
           Will this be problem on CRAN?
           Thanks,
           Spencer


[1]
https://travis-ci.org/github/sbgraves237/Ecfun/builds/727906753

__
R-package-devel@r-project.org 
mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel



__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] installed package size problem on Mac but not Linux nor Windows

2020-09-22 Thread Hugh Parsonage
One of your vignettes is a 52-page pdf. It may be more suitable to provide
a link to it rather than distributing it with the package, or distribute an
excerpt.

Some the images in the PDFs could be PDFs themselves, or be pngs with lower
resolution.

On Tue, 22 Sep 2020 at 5:04 pm, Spencer Graves <
spencer.gra...@effectivedefense.org> wrote:

> Hello, All:
>
>
>   R CMD check of "https://github.com/sbgraves237/Ecfun"; on Mac
> produces
> the following NOTE:
>
>
> * checking installed package size ... NOTE
>installed size is  5.9Mb
>sub-directories of 1Mb or more:
>  doc   5.2Mb
>
>
>   It doesn't do that with Travis CI[1] nor on a Windows 10
> computer I
> have.  "Writing R Extensions" suggested using "--compact-vignettes" with
> qpdf.  That changed nothing.
>
>
>   Suggestions?
>   Will this be problem on CRAN?
>   Thanks,
>   Spencer
>
>
> [1]
> https://travis-ci.org/github/sbgraves237/Ecfun/builds/727906753
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


[R-pkg-devel] installed package size problem on Mac but not Linux nor Windows

2020-09-22 Thread Spencer Graves

Hello, All:


	  R CMD check of "https://github.com/sbgraves237/Ecfun"; on Mac produces 
the following NOTE:



* checking installed package size ... NOTE
  installed size is  5.9Mb
  sub-directories of 1Mb or more:
doc   5.2Mb


	  It doesn't do that with Travis CI[1] nor on a Windows 10 computer I 
have.  "Writing R Extensions" suggested using "--compact-vignettes" with 
qpdf.  That changed nothing.



  Suggestions?
  Will this be problem on CRAN?
  Thanks,
  Spencer


[1]
https://travis-ci.org/github/sbgraves237/Ecfun/builds/727906753

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Installed package size

2020-03-13 Thread Dirk Eddelbuettel


On 12 March 2020 at 20:14, Ivan Krylov wrote:
| On Thu, 12 Mar 2020 15:16:13 +
| Carsten Croonenbroeck  wrote:
| >> Where a large amount of data is required (even after compression),
| >> consideration should be given to a separate data-only package which
| >> can be updated only rarely (since older versions of packages are
| >> archived in perpetuity).
| 
| If publishing the data separately from the code is acceptable, you
| could use drat [**] to set up a repository for the data package
| somewhere else, then list the data package in Suggests: and the repo in
| Additional_repositories: in the DESCRIPTION of the code package, which
| you could submit to CRAN.

Thanks for the pointer! And Neal just kindly edited a SO answer describing
this, so I updated the list of CRAN packages doing this. [1]

The best reference, though, may still be our R Journal paper on this. [2]

Hth, Dirk

[1] 
https://stackoverflow.com/questions/36105257/how-to-make-r-package-recommend-a-package-hosted-on-github/36105343#36105343
[2] https://journal.r-project.org/archive/2017/RJ-2017-026/index.html


-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Installed package size

2020-03-12 Thread Ivan Krylov
On Thu, 12 Mar 2020 15:16:13 +
Carsten Croonenbroeck  wrote:

> I would like to know what's the maximum size and if there's a way
> around that limit.

Here's what CRAN policy [*] says about that:

>> As a general rule, neither data nor documentation should exceed 5MB
>> (which covers several books). A CRAN package is not an appropriate
>> way to distribute course notes, and authors will be asked to trim
>> their documentation to a maximum of 5MB.

(According to src/library/tools/R/check.R, 5MB seems to be the limit on
installed size, not compressed tarball size.)

>> Where a large amount of data is required (even after compression),
>> consideration should be given to a separate data-only package which
>> can be updated only rarely (since older versions of packages are
>> archived in perpetuity).

If publishing the data separately from the code is acceptable, you
could use drat [**] to set up a repository for the data package
somewhere else, then list the data package in Suggests: and the repo in
Additional_repositories: in the DESCRIPTION of the code package, which
you could submit to CRAN.

-- 
Best regards,
Ivan

[*] https://cran.r-project.org/web/packages/policies.html

[**]
https://cran.r-project.org/web/packages/drat/vignettes/DratForPackageAuthors.html

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


[R-pkg-devel] Installed package size

2020-03-12 Thread Carsten Croonenbroeck
Hello everyone,

I would like to ask what's the maximum for installed package size. The thing 
is, I would like to publish a package that contains, sure, a set of functions, 
but also a very nice data set concerning meteorological data. That data set is 
required for wind farm layout optimization, a topic the entire package deals 
with.

Now, if I have RStudio check my package, it reports correctly that the package 
size is 65.9 MB (which is the size of the tarball), but the uncompressed size 
is 118.8 MB (which is also correct as is roughly matches the size of the .RData 
file). The package uses lazyload. Using the RStudio check mechanism, I get zero 
errors, zero warnings and one note, namely the one concerning installed package 
size. If I use devtools::check(); I even get a warning at "checking data for 
ASCII and uncompressed saves", reporting the same (correct) sizes.

I would like to know what's the maximum size and if there's a way around that 
limit. I also think to remember that I've downloaded other rather large 
packages from CRAN before. Unfortunately, I can't remember right now which 
packages that were... :-/

Best regards and thanks in advance

Carsten


[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel