[R-pkg-devel] Fwd: CRAN Submission rkriging 1.0.1

2024-07-18 Thread Bill Huang
Tue, Jul 16, 2024 at 2:19 AM Subject: Re: CRAN Submission rkriging 1.0.1 To: Bill Huang <10billhuan...@gmail.com> Please ask on the mailing list Best, Uwe Ligges On 16.07.2024 08:32, Bill Huang wrote: > Hi, Uwe. > > Thanks for the message! I am not sure how to resolve this issu

[R-pkg-devel] Possible bug in Codoc checking with R CMD Check

2023-08-05 Thread bill
s of the GitHub repo are: https://github.com/billdenney/TopicLongTableR/blob/main/R/topic_long_table_h eader_footer.R https://github.com/billdenney/TopicLongTableR/blob/main/man/topic_long_table _header.Rd https://github.com/billdenney/TopicLongTableR/actions/runs/5771551599/job/15 645624146#s

Re: [R-pkg-devel] Inconsistent functionality of c++ code in MatchIt

2023-05-11 Thread Bill Dunlap
I see the problem when I compile the C++ code on Ubuntu 20.04 and the latest R-devel with C++ compiler: ‘g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 If I change all the unadorned 'abs' calls in src/nn_matchC_vec.cpp with the prefix 'std::' the problem goes away. -Bill On Thu

Re: [R-pkg-devel] Sanitize Input Code for a Shiny App

2023-02-28 Thread Bill Denney
some minimal sanitization of the input, but then we will also ensure that we do anything in a container with limits applied from the outside, too. Thanks, Bill On Sun, Feb 26, 2023, 4:57 PM Simon Urbanek wrote: > Bill, > > the short answer is you can't limit anything at R level. A

[R-pkg-devel] Sanitize Input Code for a Shiny App

2023-02-26 Thread bill
from users to prevent malicious behavior? Thanks, Bill [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] reproducing cran warnings

2023-02-03 Thread Bill Dunlap
rintf(string, length, "format ..."); -Bill On Fri, Feb 3, 2023 at 8:28 AM Brad Eck wrote: > Dear List - > > What’s the latest best practice on trying to reproduce warnings raised > on CRAN checks? > > I updated my epanet2toolkit package earlier this week. > R CMD che

Re: [R-pkg-devel] replacements of sprintf in compiled code

2023-01-21 Thread Bill Dunlap
Even Microsoft added snprintf to Visual C++ in 2015 (not that that matters for R). -Bill On Sat, Jan 21, 2023 at 2:47 AM Duncan Murdoch wrote: > On 21/01/2023 5:33 a.m., Holger Hoefling wrote: > > Hi, > > > > thanks for the tip! Is that available everywhere or do I nee

Re: [R-pkg-devel] corrupted NAMESPACE file

2023-01-20 Thread Bill Dunlap
c" > Sys.setlocale(locale="C") [1] "C" > tools::showNonASCIIfile(' https://raw.githubusercontent.com/JamesRamsay5/fda/master/NAMESPACE') 1: export(AmpPhasDecomp, > rawToChar(readBin(' https://raw.githubusercontent.com/JamesRamsay5/fda/master/NAMESPACE

Re: [R-pkg-devel] NOTE about use of `:::`

2022-12-14 Thread Bill Dunlap
eval(call) [That code is completely untested.] -Bill On Wed, Dec 14, 2022 at 3:19 PM David Kepplinger wrote: > Dear List, > > I am working on updating the pense package and refactored some of the > methods. I have several functions which take the same arguments, hence I'm &g

Re: [R-pkg-devel] Save and restoring random number seed in a package function

2022-09-14 Thread Bill Dunlap
e name of the argument. The format of the seed depends on the generator used - I think it used the nature of the proffered seed to get the likely generator, but there may have also been arguments to specify the generator explicitly. I think this would be a nice thing to add to R's set.seed.

Re: [R-pkg-devel] Warning... unable to translate 'Ekstrm' to a wide string; Error... input string 1 is invalid

2022-07-19 Thread Bill Dunlap
oding(qu) [1] "UTF-8" "UTF-8" "UTF-8" "UTF-8" > qx == qu [1] TRUE TRUE TRUE TRUE (charToRaw shows that qu and qx are not byte-for-byte identical: '==' coerces the latin1 strings to utf-8.) -Bill On Tue, Jul 19, 2022 at 9:38 AM Spencer

Re: [R-pkg-devel] What influences the size of the rdb file in a package

2021-10-30 Thread Bill Dunlap
tes [Is there a more direct way to remove byte code from a function? Or to inspect it?] Building Matrix with --no-byte-compile reduces the size of R/Matrix.rdx by more than half, from 2.7 MB to 1 MB. -Bill On Sat, Oct 30, 2021 at 12:00 AM Mosqueira Sanchez, Iago < iago.mosque...@wur.nl&

Re: [R-pkg-devel] Internet resources and Errors

2021-09-24 Thread Bill Dunlap
Can you tell if the failure to download was due to a Solaris-specific issue or due to the Solaris test machine not being fully connected to the internet? -Bill On Fri, Sep 24, 2021 at 7:50 AM Roy Mendelssohn - NOAA Federal via R-package-devel wrote: > Hi All: > > I am getting dinged

[R-pkg-devel] Unicode Name Warnings for Package Constant

2021-09-02 Thread bill
o native encoding unable to translate '' to native encoding unable to translate '' to native encoding unable to translate '' to native encoding unable to translate '' to native encoding unable to translate '' to native encoding

Re: [R-pkg-devel] can't reproduce 'Additional issues' on CRAN with valgrind

2021-08-06 Thread Bill Dunlap
strncpy( s->data, p, n ); + s->data[n] = '\0'; s->len = n; } I don't know why valgrind isn't working for you. -Bill On Mon, Aug 2, 2021 at 4:23 PM Georgi Boshnakov < georgi.boshna...@manchester.ac.uk> wrote: > Thanks for looking into thi

Re: [R-pkg-devel] can't reproduce 'Additional issues' on CRAN with valgrind

2021-08-02 Thread Bill Dunlap
I ran the tests of rbibutils-2.2.2, using the latest devel version of R configured to use valgrind, with R --debugger=valgrind --debugger-args=--track-origins=yes --quiet -e 'testthat::test_package("rbibutils")' I saw a lot of 'conditional jump depends on uninitialized value' errors: ==27280== C

Re: [R-pkg-devel] Tracking down inconsistent errors and notes across operating systems

2021-07-22 Thread Bill Dunlap
I think the problem with RPostgreSQL/sec/RS-DBI.c comes from some changes to Defn.h and Rinternals.h in RHOME/include that Luke made recently (2021-07-20, svn 80647). Since then the line #define s_object SEXPREC in Rdefines.h causes problems. Should it now be 'struct SEXPREC'? -Bil

Re: [R-pkg-devel] weird C stack traces from win-builder, due to brms/rstan load?

2021-07-05 Thread Bill Dunlap
tor >&) -Bill On Mon, Jul 5, 2021 at 11:01 AM Duncan Murdoch wrote: > On 05/07/2021 10:32 a.m., Ben Bolker wrote: > >I'm running into trouble checking a new release of the 'broom.mixed' > > package <https://cran.r-project.org/web/packages/broom.mixed/ind

Re: [R-pkg-devel] [Error] data length differs from size of matrix

2021-06-04 Thread Bill Dunlap
solve_svd's second argument is 'tolerance', a small scalar value, not the right hand side of X %*% beta == Y. It returns the [approximate] inverse of X, not beta. solve_svd(cor.x2,cor.y) should probably be solve_svd(cor.x2)%*%cor.y (or just solve(cor.x2,cor.y)). -Bill On Fri, J

Re: [R-pkg-devel] [Error] data length differs from size of matrix

2021-06-04 Thread Bill Dunlap
The offending line in path_coeff seems to be betas[i, 2:nvar] <- t(solve_svd(cor.x2, cor.y)) where i is a single integer, nvar is 15, and the right hand side is a 14 by 14 matrix. What is this line trying to do? Did it ever give the correct result? -Bill On Fri, Jun 4, 2021 at 7:39 AM B

Re: [R-pkg-devel] [Error] data length differs from size of matrix

2021-06-04 Thread Bill Dunlap
lt;- -> [<-.data.frame -> matrix Execution halted In the current R-devel the matrix command matrix(value, nrow, ncol) complains if length(value)>nrow*ncol, so you need to truncate 'value'. (Previously matrix() would silently truncate value.) -Bill On Thu, Jun 3, 2021 at 5:57

Re: [R-pkg-devel] R vignettes

2021-04-29 Thread Bill Dunlap
cli does export col_red - did you omit the 'r' when calling it from your package or vignette? On Thu, Apr 29, 2021 at 9:29 AM Danielle Maeser wrote: > Hi Duncan, > > I really appreciate your response. Unfortunately, I am still receiving the > error below. > > If anyone has ideas, I'd appreciate

Re: [R-pkg-devel] Using ggplot2 within another package

2021-04-24 Thread Bill Dunlap
S=c("weights","subset","offset")) usesNSE(FUN="~") # missing ARGUMENTS means all args are NSE This information would be stored in the environment that contains FUN. -Bill On Sat, Apr 24, 2021 at 6:18 AM Martin Maechler wrote: > >>>>> Ben Bolker

Re: [R-pkg-devel] Error on Solaris 10 'memory not mapped'

2021-04-01 Thread Bill Dunlap
Have you run the offending examples under valgrind on Linux with gctorture(TRUE)? -Bill On Thu, Apr 1, 2021 at 11:51 AM Zhang, Wan wrote: > > Hello, > > In our package “BET” version 0.3.4 published on 2021-03-21, there is a > “memory not mapped” error on Solaris 10. &g

Re: [R-pkg-devel] rcmdcheck reports wrong version of lattice

2021-03-08 Thread Bill Dunlap
I haven't followed all the code branches in tools:::.check_packages(), but some of them use --vanilla when running the R subprocess that does the checking. I think that would mean that libraries in ~/R would not be in the search path. -BIll On Mon, Mar 8, 2021 at 8:45 AM Thierry Onkelinx

Re: [R-pkg-devel] How to R CMD build / check using LTO

2021-02-18 Thread Bill Dunlap
id Fortran logicals out of habit. -Bill On Thu, Feb 18, 2021 at 1:59 AM Paul Schmidt-Walter wrote: > > Hi Bill, > > thanks a lot for your suggestion! > > I managed to use Gabors Docker image to reproduce the warning... I > already found a solution, by turning LOGICAL to INTEGER in

Re: [R-pkg-devel] How to R CMD build / check using LTO

2021-02-17 Thread Bill Dunlap
I suspect your problem is that, at least with the recent gnu compilers, the Fortran 'c_logical' maps to the C _Bool, not the C int. -Bill On Wed, Feb 17, 2021 at 11:38 AM Paul Schmidt-Walter wrote: > > Dear Team, > > My package 'LWFBrook90R' (https://github.com/p

Re: [R-pkg-devel] accessing call constructors in Cpp

2021-01-05 Thread Bill Dunlap
Try using their official names, Rf_ScalarReal, Rf_eval, Rf_install, etc. You may have #defined R_NO_REMAP in code that you did not show us. -Bill On Tue, Jan 5, 2021 at 1:42 PM Oliver Madsen wrote: > This is maybe better suited for Rcpp-devel or another mailing list. If so, > I apo

Re: [R-pkg-devel] Compiling 32-bit on Windows using 64-bit gcc and -m32

2020-09-09 Thread bill
e, not meaning compiler optimization), so optimization is preferable. But, it's a fair point that I don't know the value of the different -O optimization levels for what is only long algebra. Thanks, Bill __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

[R-pkg-devel] Compiling 32-bit on Windows using 64-bit gcc and -m32

2020-09-07 Thread bill
ation completed successfully (though installation failed as expected because the compiled .dll couldn't load on 32-bit R). Thanks, Bill [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Check Error Due to Unicode in Documentation

2020-07-23 Thread bill
.Rd file should be edited by hand, > instead of auto-generated? I don't think roxygen2 intentionally converts \u sequences, I think this is just a consequence of the parse() + deparse() roundtrip: x <- '"\\u03bc"' charToRaw(x) #> [1] 22 5c 75 30 33 62 63 22 y <-

[R-pkg-devel] Check Error Due to Unicode in Documentation

2020-07-23 Thread bill
5c7e63bbad 4194320e07/R/unicode_to_ascii.R#L28-L31 And the documentation is here: https://github.com/billdenney/bsd.report/blob/454caf217c5b333af1d65c7e63bbad 4194320e07/man/unicode_to_ascii.Rd#L17-L24 Do you have any suggestions on how to make this code/documentation work with Codoc? Tha

Re: [R-pkg-devel] Private S3 Method not Found

2020-02-17 Thread bill
xport is not desired. Thanks, Bill -Original Message- From: Duncan Murdoch On 17/02/2020 10:05 a.m., b...@denney.ws wrote: > Does anyone know why the S3 method for name class objects is not found > when checking the package? I think you need to register knit_print_helper_formula.nam

Re: [R-pkg-devel] Private S3 Method not Found

2020-02-17 Thread bill
}[!tbp] \begin{center} \begin{tabular}{l} \hline\hline \multicolumn{1}{c}{}\tabularnewline \hline ~\tabularnewline a\tabularnewline b\tabularnewline \hline \end{tabular}\end{center} \end{table} While I’m wanting an equation: $$a = b$$ Thanks, Bill From: Richard M

[R-pkg-devel] Private S3 Method not Found

2020-02-17 Thread bill
master/R/knit_print.formula.R #L60-L79): knit_print_helper_formula <- function(x, ...) { UseMethod("knit_print_helper_formula") } # Some other methods knit_print_helper_formula.name <- function(x, ...) { # Function body } Does anyone know why the S3 meth

Re: [R-pkg-devel] Large Data Package CRAN Preferences

2019-12-15 Thread bill
path(Sys.getenv("HOME"), "datapkg_cache")` if they have not set the option. To me #3 sounds best, but I'd like to be sure that I'm not missing something. Thanks, Bill -Original Message- From: Uwe Ligges Sent: Sunday, December 15, 2019 11:54 AM To: b...@den

[R-pkg-devel] Large Data Package CRAN Preferences

2019-12-12 Thread bill
ally with the umbrella package. I believe that it is considered poor form to write within the library location for a package except during installation. What is the best practice for caching the resulting large dataset which is locally-generated? Thanks, Bill [[alternative HTML ve

Re: [R-pkg-devel] How to Document and S3 Method for the Parenthesis Class?

2019-11-07 Thread bill
ppropriate \alias > > entries, and all their arguments documented. > > The \usage entries must correspond to syntactically valid R code. > > See chapter 'Writing R documentation files' in the 'Writing R > > Extensions' manual. > > > &

Re: [R-pkg-devel] How to Document and S3 Method for the Parenthesis Class?

2019-11-07 Thread bill
t; >entries, and all their arguments documented. > >The \usage entries must correspond to syntactically valid R code. > >See chapter 'Writing R documentation files' in the 'Writing R > >Extensions' manual. > > > > I have t

[R-pkg-devel] How to Document and S3 Method for the Parenthesis Class?

2019-11-07 Thread bill
Extensions' manual. I have tried variants of escaping the parenthesis like "\(" and "\\(" and the unescaped variant "(", too. Thanks, Bill [1] In case the first thought is, "don't write formula which have a f

Re: [R-pkg-devel] Literal LaTeX Text in Function Arguments

2019-08-24 Thread bill
hub.com/billdenney/TopicLongTableR/blob/master/man/topic_long_tab le_header.Rd#L9 That generated a similar issue but check showed "\..." (backslash then 3 dots) instead of what is shown in the 2 backslashes case when check showed just "...". So, while I agree that 4 backslashes would m

Re: [R-pkg-devel] Literal LaTeX Text in Function Arguments

2019-08-24 Thread bill
case when check showed just "...". So, while I agree that 4 backslashes would make the most sense for the .Rd file, there is still an issue somewhere with that 4 backslashes case. Thanks, Bill -Original Message- From: Duncan Murdoch Sent: Saturday, August 24, 2019 8:37 A

Re: [R-pkg-devel] Literal LaTeX Text in Function Arguments

2019-08-23 Thread bill
last_page = NULL, subsequent_page_notification = "continued \\ldots", verbatim = NULL) Docs: function(x, bottom_border = "\hline", bottom_all_pages = NULL, bottom_last_page = NULL, subsequent_page_notification = "continued .

Re: [R-pkg-devel] Literal LaTeX Text in Function Arguments

2019-08-23 Thread bill
opying it into the .Rd with extra escaping for the backslashes (well, roxygen2 is doing the extra escaping). Rd text -- topic_long_table_header(x, col_names = NULL, above_col_names = "hline", below_col_names = "hline", subsequent_page_notification = &q

[R-pkg-devel] Literal LaTeX Text in Function Arguments

2019-08-23 Thread bill
subsequent_page_notification = "\... continued", latex_header = NULL) ``` I'm not sure, but I think that the solution is to add more protection to the \s when generating the roxygen or perhaps wrapping the arguments in some form of verbatim block (

Re: [R-pkg-devel] Conditionally register method with generic in other package

2017-12-06 Thread Bill Denney
uot;To use the foo.bar function, please install package A.") } Thanks, Bill __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Testing for a Specific R Error

2017-12-02 Thread Bill Denney
kages. I'm going to implement that unless someone indicates something that I'm missing. Thanks, Bill > > I can ask to translate that into the current session language using > > gettext("NaNs produced", domain = "R") > > Figuring out the right

[R-pkg-devel] Testing for a Specific R Error

2017-12-02 Thread Bill Denney
cific R error (about coercion) without testing the formatting of the error text? The only solution that immediately occurs to me is to wrap the coercion in a tryCatch and give my own error. But, then were the R error translated, the users of my package would lose the benefit of transla

Re: [R-pkg-devel] Installing Tests with R Build

2017-11-25 Thread Bill Denney
directory and run the vignette if the tests were installed. Thanks, Bill -Original Message- From: Joshua Ulrich [mailto:josh.m.ulr...@gmail.com] Sent: Saturday, November 25, 2017 9:20 AM To: Bill Denney Cc: Dirk Eddelbuettel ; r-package-devel@r-project.org Subject: Re: [R-pkg-devel

Re: [R-pkg-devel] Installing Tests with R Build

2017-11-23 Thread Bill Denney
Hi Joshua and Dirk, > On Nov 23, 2017, at 10:17, Dirk Eddelbuettel wrote: > > > On 23 November 2017 at 08:07, Joshua Ulrich wrote: > | On Wed, Nov 22, 2017 at 4:21 PM, Bill Denney wrote: > | > When running R BUILD now (via Travis CI), I get an error that the build >

[R-pkg-devel] Installing Tests with R Build

2017-11-22 Thread Bill Denney
stall, I can add --install-tests. Is there a way to control R BUILD so that the installation includes test installation? Thanks, Bill __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] r-quantities seeking feedback

2017-10-06 Thread Bill Denney
dd it to their own libraries (optionally). Thanks, Bill > On Oct 6, 2017, at 13:13, David Hugh-Jones wrote: > > One question that comes to mind: what's the synergy? I e why are units and > errors best handled together? I use standard errors a lot, but never > units... I

[R-pkg-devel] Loading Libraries Outside of .lib.loc

2017-06-28 Thread Bill Denney
b.loc", envir=environment(.libPaths), c("/tmp/current", "/usr/local/lib/R/site-library", "/usr/lib/R/site-library", "/usr/lib/R/library")) Thanks, Bill P.S. Apologies if this would better fit on a

Re: [R-pkg-devel] Handling Not-Always-Needed Dependencies? - Part 2

2016-08-04 Thread Bill Denney
because no end user ever needs it? If "Depends", then it leads to over-installation of the package by end users who don't care about running tests locally. If "Suggests", then all of the tests would fail (assuming that Dirk's suggestion is implemented).

Re: [R-pkg-devel] Warning that are Unintentionally OS-Specific (Maybe Bug in warning?)

2016-07-20 Thread Bill Denney
help! Bill On 7/20/2016 3:40 PM, Ben Bolker wrote: Digging into the code (specifically by setting options(warn=2,error=recover), I see that the warning is happening during this call: tmp.results <- parallel::mclapply(X = conc.dose, FUN = pk.nca.intervals, intervals = data$i

Re: [R-pkg-devel] Warning that are Unintentionally OS-Specific (Maybe Bug in warning?)

2016-07-20 Thread Bill Denney
why would it behave differently when options(warn=1) is set rather than the default of options(warn=0)? Thanks, Bill On 7/20/2016 3:06 PM, François Michonneau wrote: Hi Bill, The problem is not with the warning() function but with your if() test that triggers the warning. It probably has

[R-pkg-devel] Warning that are Unintentionally OS-Specific (Maybe Bug in warning?)

2016-07-20 Thread Bill Denney
Does anyone have an idea why warnings may behave differently on Windows compared to non-Windows platforms? Is this a bug in R somewhere? (I've not been able to make a simpler example that triggers the issue, unfortunately.) Thanks, Bill __ R-pa