Re: [R-pkg-devel] Creating temporary files in tests/examples/vignettes - adhering to CRAN policies

2024-11-11 Thread Daniel Kelley
I think the idea is to do as below. You can also make temporary directories in a similar way. tempFile <- tempfile() # write to tempFile, and use it anyway you like unlink(tempFile) > On Nov 11, 2024, at 9:22 AM, Alexander Pate > wrote: > > CAUTION: The Sender of this

[R-pkg-devel] rhub (old and new) balks at building ncdf4 package

2024-08-03 Thread Daniel Kelley
I have a package, named 'oce' (developed at www.github.com/dankelley/oce and available through CRAN for over a decade) that uses 'ncdf4' to read some file types. When I do test builds on the win and mac builders, all is fine. When I do it with rhub, though, I get an error that ncdf4 cannot be

Re: [R-pkg-devel] [External] Re: Assistance Needed to Resolve CRAN Submission Note

2024-05-19 Thread Daniel Kelley
In answer to the question about tidy version on macOS, I have the latest version of that OS (Sonoma 14.5 release 23F79 -- a beta release, unless the official has caught up in recent days) and I get as follows. The second one is from the homebrew project, and that's what gets used by default on

Re: [R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Daniel Kelley
helped, so generously and so quickly. I wish a very Happy New Year, to all!! Dan. Dan Kelley / Oceanography Department / Dalhousie University / Halifax, Nova Scotia / Canada > On Jan 3, 2024, at 3:18 PM, Daniel Kelley wrote: > > Oh, Hadley, I'm sorry to bother you whilst y

Re: [R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Daniel Kelley
within Dalhousie. Did you re-document? You’ll need that to correctly regenerate the .Rd, I think. (Sorry I’m on vacation so I’m guessing at stuff from my phone) Hadley On Thursday, January 4, 2024, Daniel Kelley mailto:kel...@dal.ca>> wrote: Thanks. I installed the latest roxygen

Re: [R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Daniel Kelley
f this email is not from within Dalhousie. This bug is fixed in the dev version (I don’t remember off the top of my head in which of pkgdown and roxygen2 you need but it might be both). I’m planning CRAN updates for both in the near future. Hadley On Thursday, January 4, 2024, Daniel Kelley mai

[R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Daniel Kelley
# Question Is there an online example online of specializing `plot()` for S7 objects, such that `pkgdown::build_site()` will produce webpages? I ask because I find lots of users (of other packages) tend to consult websites made with pkgdown, rather than using the online help within R. I think

Re: [R-pkg-devel] Canonical way to Rprintf R_xlen_t

2023-11-28 Thread Daniel Kelley
I hope it's okay to ask this on the present thread, rather than starting a new one... On this issue of the C format for various integer-type items, I am finding that checks made with devtools::check_win_devel() give different results than those made with the github R-CMD-check action named ubun

Re: [R-pkg-devel] Canonical way to Rprintf R_xlen_t

2023-11-28 Thread Daniel Kelley
To HB: I also maintain a package that has this problem. I do not have access to a linux machine (or a machine with the C++ version in question) so I spent quite a while trying to get docker set up. That was a slow process because I had to install R, a bunch of packages, some other software, and

[R-pkg-devel] possible solution to package-documentation-alias problem

2023-08-19 Thread Daniel Kelley
# Preamble This email is to tell other developers what I did to address an issue with documenting a package. I'm not sure that I am correct in my approach -- comments would definitely be appreciated -- but at least this email is fairly concrete about the changes I made. To be honest, I don't know

Re: [R-pkg-devel] advice on a rejected package (I think, because time was 13min, in excess of 10min limit)

2022-05-12 Thread Daniel Kelley
On May 12, 2022, at 4:34 AM, Tomas Kalibera mailto:tomas.kalib...@gmail.com>> wrote: CAUTION: The Sender of this email is not from within Dalhousie. On 5/11/22 22:26, Daniel Kelley wrote: Thanks, Dirk. On my machine, the test suite takes 85 seconds. Assuming the CRAN machines are abou

[R-pkg-devel] handling of byte-order-mark on r-devel-linux-x86_64-debian-clang machine

2022-03-26 Thread Daniel Kelley
In the most recent release of the oce package, there is a new test that uses a package-supplied file of meteorological data. This is one of three such files that are included with the package. They are from Environment Canada, which keeps changing the format, and so oce needs to be able to rea

[R-pkg-devel] how to address CRAN FAIL on r-devel-windows-x86_64-gcc10-UCRT?

2021-04-02 Thread Daniel Kelley
The "oce" package for oceanographic analysis is failing a check on the r-devel-windows-x86_64-gcc10-UCRT system (see https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64-gcc10-UCRT/oce-00check.html). The problem seems to relate to the checking vignette outputs. According to https://ww

[R-pkg-devel] how to set .Rbuildignore with respect to vignettes?

2021-01-28 Thread Daniel Kelley
SUMMARY QUESTION. Should there be a `^vignettes$` line in `.Rbuildignore` files? BACKGROUND. I am trying to trim the size of the 'oce' package. It has several vignettes, and I would like to learn how to include them optimally in my tarball. The listing given in DETAILS reveals a duplicated v

Re: [R-pkg-devel] how to prevent a small package from yielding a large installed size?

2020-06-15 Thread Daniel Kelley
I found as Duncan, but then I saw https://stackoverflow.com/questions/54144239/how-to-use-saverds-refhook-parameter and found more info as follows. (It will take me a while to go through the output, but basically I am seeing code from the "oce" package, which makes me think I ought to get rid

Re: [R-pkg-devel] how to prevent a small package from yielding a large installed size?

2020-06-15 Thread Daniel Kelley
Duncan, thanks very much for that very helpful hint. I got as follows. My guess is that the first column in rdx$variables is an address offset, and so it seems that the lion's share of the storage is dedicated to items with names starting with a decimal point. For example, the "[[" item is at

[R-pkg-devel] how to prevent a small package from yielding a large installed size?

2020-06-15 Thread Daniel Kelley
I am working on a package (https://github.com/ArgoCanada/argoFloats) that has a 412K source tarball (most of which is data; the R code is 176K), but that creates a library .rdb file of MUCH larger size, namely 7.2M. This file causes a build NOTE, being over the threshold of 1M, and that concern

Re: [R-pkg-devel] R-package-devel Digest, Vol 44, Issue 14

2018-12-22 Thread Daniel Kelley
> On Dec 22, 2018, at 7:00 AM, r-package-devel-requ...@r-project.org wrote: > > (since it's fairly unlikely to get two random failures in a row). Flakey links are also a problem for packages, per se, as opposed to revdeps. For example, I have a package (oce) that has quite a lot of \url{} items

Re: [R-pkg-devel] "no prebuilt vignette index" error

2017-08-26 Thread Daniel Kelley
Thanks, Berry. It turns out that the problem was an inclusion of ^build$ in my .Rbuildignore file. Best regards, Dan. Dan E. Kelley, Professor Oceanography Department, Dalhousie University Halifax, NS, Canada __ R-package-devel@r-project.org mailin

[R-pkg-devel] "no prebuilt vignette index" error

2017-08-25 Thread Daniel Kelley
QUESTION: I wonder how to address the error that I’ve quoted in the subject line? DETAILS: I am using R 3.4.1 to build the “oce” package, which helps with the analysis of oceanographic data. It’s several years old. Lately, when I submit the “oce” package to winbuilder using devtools

Re: [R-pkg-devel] R-devel problem with temporary files or decompression?

2015-07-12 Thread Daniel Kelley
ges > wrote: > > > > On 12.07.2015 17:33, Daniel Kelley wrote: >> A data file that I’d like to use in my “oce” package is quite large, and >> compresses well, so I thought of putting a compressed version into >> inst/extdata. I want my documentation to show ho

[R-pkg-devel] R-devel problem with temporary files or decompression?

2015-07-12 Thread Daniel Kelley
A data file that I’d like to use in my “oce” package is quite large, and compresses well, so I thought of putting a compressed version into inst/extdata. I want my documentation to show how to uncompress the file, partly because these files tend to compress so well that I think users might like

Re: [R-pkg-devel] how to call PROJ.4 C code in a package?

2015-05-26 Thread Daniel Kelley
Roger, I plan to make the next version of oce use rgdal::project() to do its work. The idea of using an external PROJ.4 is fine in my own work, but oce has a lot of users who are unaccustomed to building and installing external libraries. Also, many work at institutes that do not permit this ki