Re: [R-pkg-devel] Package Load fails to find 3rd Party DLL

2023-07-17 Thread Ivan Krylov
В Fri, 14 Jul 2023 22:25:51 +0300 Ivan Krylov пишет: > Maybe it's a red herring. Maybe the message from nm about missing file > has always been harmless, and what we're seeing here is a bug in the > toolchain; perhaps ld.exe doesn't like something about Netica.lib so &

Re: [R-pkg-devel] Package Load fails to find 3rd Party DLL

2023-07-14 Thread Ivan Krylov
On Fri, 14 Jul 2023 13:29:32 -0400 Russell Almond wrote: > So I'm confused.  Why is the Makevars -> Makefile conversion assuming > that all targets of $(SHLIB) (or all) are executable files, ignoring > the PHONY declaration? The $(SHLIB) target is defined in ${R_HOME}/share/make/winshlib.mk. In

Re: [R-pkg-devel] Package Load fails to find 3rd Party DLL

2023-07-14 Thread Ivan Krylov
В Wed, 12 Jul 2023 09:41:11 -0400 Russell Almond пишет: >   C:\rtools43\x86_64-w64-mingw32.static.posix\bin\nm.exe: > 'NeticaDLL': No such file This is where the problem starts. You can retrace the steps that R takes when building and installing the package by running sh configure.win manually

Re: [R-pkg-devel] A replacement idiom for \value{\item{\var{...}}{}}

2023-07-12 Thread Ivan Krylov
Dear Sebastian, Thank you for the advice! On Mon, 10 Jul 2023 20:08:23 +0200 Sebastian Meyer wrote: > I think a workaround that currently works for your use case is to use > \code{fooval.\var{m}} as the label (i.e., wrapped inside \code). The workaround works well, but I think I agree that \i

[R-pkg-devel] A replacement idiom for \value{\item{\var{...}}{}}

2023-07-10 Thread Ivan Krylov
Hello R-package-devel, I've got a function that returns a data.frame. The columns (and their names) of the return value are parametrised by the arguments of the function. See, for example, the following function: foo <- function(n = 10, out.M = c(2, 3, 5)) as.data.frame(setNames( lapply(out.M,

Re: [R-pkg-devel] Best practices for CRAN package using Go

2023-07-10 Thread Ivan Krylov
В Thu, 06 Jul 2023 15:22:26 -0300 Dewey Dunnington пишет: > I've wrapped two of these drivers for R that seem to build and > install on MacOS, Linux, and Windows [3][4]; however, I am not sure > if the pattern I used is suitable for CRAN or whether these packages > will have to be GitHub-only for

Re: [R-pkg-devel] Help with a github/Rstudio mess

2023-07-05 Thread Ivan Krylov
On Wed, 5 Jul 2023 09:44:26 +0100 Chris Evans wrote: > OK.  So I try to pull thinking that made sense and that the change to > pkgdown.yaml on github that I made yesterday is the offending change. You are right about this. > However, when I pull (in Rstudio again) I get this: > > >>> /usr/bi

Re: [R-pkg-devel] New R CMD check warnings for html files

2023-07-01 Thread Ivan Krylov
В Fri, 30 Jun 2023 14:20:00 -0700 arilamst...@gmail.com пишет: > However, when I run R CMD check I now get a ton of warnings in what I > assume is the conversion of the man files from .Rd to .html files. I > assume that CRAN will reject the package due to the warnings. > However, I don't really un

Re: [R-pkg-devel] devtools::submit_cran() failure

2023-06-30 Thread Ivan Krylov
В Fri, 30 Jun 2023 14:39:31 +0100 Alan Inglis пишет: > Error in if (new_url$query$submit == "1") { : argument is of length > zero If this isn't a one-off network hiccup that cannot be subsequently reproduced, this seems to be a problem in devtools. The code doesn't check the value returned from

Re: [R-pkg-devel] Public URLs for help for versions of base packages

2023-06-30 Thread Ivan Krylov
On Fri, 30 Jun 2023 06:19:33 +0100 David Hugh-Jones wrote: > it would be burdensome in terms of data (and my time) > More generally, shouldn’t there be publicly available versioned > documentation? Python has had this for a long time. CRAN has a searchable archive of R documentation for the who

Re: [R-pkg-devel] Public URLs for help for versions of base packages

2023-06-29 Thread Ivan Krylov
On Thu, 29 Jun 2023 20:22:47 +0100 David Hugh-Jones wrote: > I'm looking for a source of online help for R base > packages, which covers all versions (for some reasonable value of > "all"). So e.g. the equivalent of `?lm` for R 4.1.0. These live in the R source tree, under src/library: https://s

Re: [R-pkg-devel] Nickname allowed in description when submitting to CRAN?

2023-06-25 Thread Ivan Krylov
В Sun, 25 Jun 2023 06:30:39 + Bernd.Gruber пишет: > I read in some stackexchange answers that it is possible to add the > keyword > > Nickname: > > to the description file. It works fine when I check the package but > winbuilder comes back with a note: > > Unknown, possibly misspelled, fie

Re: [R-pkg-devel] R CMD check: checking for detritus in the temp directory

2023-06-11 Thread Ivan Krylov
В Thu, 8 Jun 2023 14:34:03 +0200 пишет: > I think the temp files are from tensorflow. There is a vignette in > the package that constructs a keras > > Model. Is it possible to avoid the check NOTE in my package? Other CRAN packages seem to remove these files (generated by tensorflow.autograph)

Re: [R-pkg-devel] Missing ggPMX causing failure for nlmixr2rpt

2023-06-02 Thread Ivan Krylov
On Thu, 1 Jun 2023 17:48:49 -0700 John Harrold wrote: > Am I reading that correctly that ggPMX not being found is the cause > of my issues? Your package got flagged by the additional test, "noSuggests", where only the packages you have a hard dependency upon are available: https://www.stats.ox.a

Re: [R-pkg-devel] Linking Problem on MacOS

2023-05-26 Thread Ivan Krylov
В Thu, 25 May 2023 11:57:07 + Sameh Abdulah пишет: > We are developing an R-C++ package that relies on several libraries, > including Rcpp Thankfully, using the Rcpp package in your own packages is a well-documented, reliable process. By the way, can we see the code? > blas, lapack These

Re: [R-pkg-devel] Question about notes

2023-05-23 Thread Ivan Krylov
On Tue, 23 May 2023 17:32:21 + João Pedro de Almeida dos Santos wrote: > checking for non-standard things in the check directory ... NOTE > Found the following files/directories: > ''NULL'' > > I am unable to find this NULL file/directory anywhere The code inside your tests or examp

Re: [R-pkg-devel] help fixing CRAN package sos-now fails on GitHub

2023-05-22 Thread Ivan Krylov
I fed your vignette to R CMD Sweave, and here's the relevant fragment from the resulting *.tex file: > This returned a {\tt "findFn"} object identifying 405 help pages. > When this was run while preparing this manuscript, the sixth row was > {\tt pspline_checker} in the \pkg{JOPS} package, which h

Re: [R-pkg-devel] Intrinsic UTF-8 use in aspired CRAN package

2023-05-19 Thread Ivan Krylov
В Thu, 18 May 2023 12:48:01 + "Schuhmacher, Dominic" пишет: > By the way, what is the recommended way of setting environment > variables like PDFLATEX and (possibly) RD2PDF_INPUTENC in a package > (if this is something that is allowed on CRAN)? I don't think there is a supported way of doin

Re: [R-pkg-devel] Intrinsic UTF-8 use in aspired CRAN package

2023-05-18 Thread Ivan Krylov
В Wed, 17 May 2023 12:05:49 + "Schuhmacher, Dominic" пишет: > checking PDF version of manual ... WARNING > LaTeX errors when creating PDF version. > This typically indicates Rd problems. > LaTeX errors found: > ! Package inputenc Error: Unicode character 冷 (U+51B7) > (inputenc) not set up for

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-17 Thread Ivan Krylov
В Wed, 17 May 2023 11:05:46 -0400 Jarrett Phillips пишет: > `which gfortran` returns > > /usr/local/bin/gfortran I think you ran the other gfortran. Is there a gfortran installation in /opt/gfortran? > libraries: > =/usr/local/gfortran/lib/gcc/aarch64-apple-darwin22/12.2.0/:/usr/local/gfortran

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-17 Thread Ivan Krylov
Can you build a Fortran program? I.e., does the following work? cat >hello.f90

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Ivan Krylov
В Tue, 16 May 2023 12:07:05 -0400 Jarrett Phillips пишет: >ld: warning: directory not found for option > '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1' >ld: warning: directory not found for option > '-L/opt/R/arm64/gfortran/lib' >ld: library not found

Re: [R-pkg-devel] help fixing CRAN package sos

2023-05-15 Thread Ivan Krylov
On Mon, 15 May 2023 18:46:00 -0500 Spencer Graves wrote: > I can NOT replicate these locally nor with GitHub action, and I > failed to find 'psp' in 'sos.Rnw'.[2] This raises two issue: > > > OBVIOUS: What can I do to fix this error, or at least to understand > it better? How does the outpu

Re: [R-pkg-devel] files katex.js and katex-config.js not found in R CMD check --as-cran

2023-05-09 Thread Ivan Krylov
On Tue, 9 May 2023 12:57:06 -0400 J C Nash wrote: > In updating my nlsr package, I ran R CMD check --as-cran and got an > error that /usr/lib/R/doc/html/katex/katex.js was not found. > Is there a glitch in my system? Or is this a bug in the latest R CMD > check --as-cran? (Or at least a configur

Re: [R-pkg-devel] Acknowledging small functions from another package

2023-05-04 Thread Ivan Krylov
On Thu, 4 May 2023 09:21:17 +0100 David Hugh-Jones wrote: > One of my packages copy-pasted some small functions (stuff like > `%||%` for is.null) from ggplot2. (Both packages are MIT-licensed.) > > What is an appropriate way to acknowledge this in the DESCRIPTION > Author: or Authors@R section?

Re: [R-pkg-devel] RFC: An ad-hoc "cluster" one can leave and rejoin later

2023-04-28 Thread Ivan Krylov
On Thu, 27 Apr 2023 11:47:27 + "Viechtbauer, Wolfgang (NP)" wrote: > Can you clarify what happens if a node disconnects from the pool > while it is running some assigned task? I assume/hope the pool server > keeps track of that and will then submit the nonfinished task to > another node. Thi

Re: [R-pkg-devel] CRAN check fails on NEWS

2023-04-26 Thread Ivan Krylov
On Wed, 26 Apr 2023 20:38:36 +0200 Gert van Valkenhoef wrote: > I'm hoping you can help me understand this new CRAN check failure > that occurs on Debian but not on Windows: Unfortunately, not all checks are enabled on all check machines. > * checking package subdirectories ... NOTE > Problems

[R-pkg-devel] RFC: An ad-hoc "cluster" one can leave and rejoin later

2023-04-26 Thread Ivan Krylov
Hello R-package-devel members, I've got an idea for a package. I'm definitely reinventing a wheel, but I couldn't find anything that would fulfil 100% of my requirements. I've got a computational experiment that takes a while to complete, but the set of machines that can run it varies during the

Re: [R-pkg-devel] katex

2023-04-25 Thread Ivan Krylov
On Tue, 25 Apr 2023 06:39:23 -0500 Dirk Eddelbuettel wrote: > Nice catch. In favour. Would you mind filing a bugzilla report to > make sure this persists and makes it into R 4.3.1 or 4.4.0 or ... ? Thanks for the review! Filed the report at . --

Re: [R-pkg-devel] katex

2023-04-25 Thread Ivan Krylov
On Mon, 24 Apr 2023 18:17:22 +0200 Göran Broström wrote: >cannot open file '/usr/lib/R/doc/html/katex/katex.js': No such > file or directory > I still get the error with R CMD check --as-cran. What am I > missing? Obviously /usr/lib/R/doc/html/katex/katex.js (no 'doc'), but > ... > > I am i

Re: [R-pkg-devel] package not passing automatic checks: no clue as to what is causing 2 notes

2023-04-12 Thread Ivan Krylov
В Wed, 12 Apr 2023 10:05:32 +0200 Gianmarco Alberti пишет: > 'CreateProcess' failed to run > 'd:\rtools43\x86_64-w64-mingw32.static.posix\bin\tidy.exe -language > en -qe --drop-empty-elements no D:\temp\Rtmp29JsRe\file2426857b24734' This is a (transient?) problem on the machine running the check

Re: [R-pkg-devel] What checks are required before uploading a package to CRAN?

2023-04-05 Thread Ivan Krylov
On Tue, 4 Apr 2023 14:28:52 -0600 John Lawson wrote: > ERROR: Access to the path > 'C:\Inetpub\ftproot\R-devel\daewr_1.2-9.tar.gz' is denied. (perhaps > you uploaded already and the file has not been processed yet?) > > It has been 4 days since I uploaded the file to R-release, and I get > autom

Re: [R-pkg-devel] correcting errors in an existing package

2023-04-01 Thread Ivan Krylov
On Fri, 31 Mar 2023 16:51:40 -0400 Dennis Boos wrote: > Also, I keep getting the message in the Rstudio check > > WARNING >'qpdf' is needed for checks on size reduction of PDFs > > > but I got the latest versions of R and Rstudio and was able to get > qpdf to install and loaded with librar

Re: [R-pkg-devel] How to identify what flags "Additional Issues" for UBSAN

2023-03-23 Thread Ivan Krylov
В Wed, 22 Mar 2023 15:51:54 + "Kenny, Christopher" пишет: > Is there an easy way to identify what is causing the flag? Unfortunately, it's _all_ the sanitizer errors. > wilson.cpp:165:34: runtime error: signed integer overflow: > -2147483648 * -1 cannot be represented in type 'int' > Howev

Re: [R-pkg-devel] Check: Rd \usage sections, Result: The \usage entries for S3 methods should use the \method markup and not their full name.

2023-03-22 Thread Ivan Krylov
On Tue, 21 Mar 2023 23:08:43 +0100 Yohann Foucher wrote: > Check: Rd \usage sections, Result: NOTE > S3 methods shown with full name in documentation object 'nnet.time': >'nnet.time' > > The \usage entries for S3 methods should use the \method markup and > not their full name. I have down

Re: [R-pkg-devel] How to declare Bioconductor Dependencies in the Description File of my R Package

2023-03-20 Thread Ivan Krylov
On Mon, 20 Mar 2023 19:32:03 + "Ruff, Sergej" wrote: > but I thought Notes will also cause rejection when submitting a > package to CRAN. Won´t that be a problem? True, a NOTE during an automatic check may cause a rejection, but you won't get this NOTE there. Automatic CRAN pre-tests are don

Re: [R-pkg-devel] How to declare Bioconductor Dependencies in the Description File of my R Package

2023-03-20 Thread Ivan Krylov
В Mon, 20 Mar 2023 08:38:41 + "Ruff, Sergej" пишет: > When Limma is üre-installed, I get the following Note: > > > "Package suggested but not available for checking: 'limma'". > > > Seems like the functions isnt installing limma. > > Is there something I am missing? No, this is exactly

Re: [R-pkg-devel] How to declare Bioconductor Dependencies in the Description File of my R Package

2023-03-17 Thread Ivan Krylov
В Fri, 17 Mar 2023 12:29:51 + "Ruff, Sergej" пишет: > The problem is that a local installation of my package (via USB-stick > for example) can´t install the dependencies from CRAN. > > The package works perfectly fine, if the dependencies are > preinstalled. This is a similar, but different

Re: [R-pkg-devel] How to declare Bioconductor Dependencies in the Description File of my R Package

2023-03-17 Thread Ivan Krylov
В Fri, 17 Mar 2023 11:02:18 + "Ruff, Sergej" пишет: > I would like to ask, if I need to add something to the > DESCRIPTION-file when declaring Bioconductor dependencies for CRAn > Submission. Strictly speaking, no. Once you list limma under Suggests, it's possible and proper to install your

Re: [R-pkg-devel] How to declare Bioconductor Dependencies in the Description File of my R Package

2023-03-17 Thread Ivan Krylov
В Fri, 17 Mar 2023 10:19:37 + "Ruff, Sergej" пишет: > Thats the source of my worries. Will the same error appear when CRAN > checks the examples of my package? Or should I not be worried? Yes, part of CRAN checks is running your package without the packages listed under Suggests: https://www

Re: [R-pkg-devel] Should 'methods' be in Imports?

2023-03-16 Thread Ivan Krylov
On Thu, 16 Mar 2023 11:29:33 -0400 Noah Greifer wrote: > Is including these packages filling the DESCRIPTION with unnecessary > dependencies that are automatically satisfied, or is it being > helpfully explicit about the packages your package relies on? Here's a comment from the part of R CMD ch

Re: [R-pkg-devel] How to declare Bioconductor Dependencies in the Description File of my R Package

2023-03-16 Thread Ivan Krylov
On Thu, 16 Mar 2023 17:01:55 + "Ruff, Sergej" wrote: > Last question: How does CRAN work with Bioconductor Dependencies? > Will CRAN accept limma as a dependency or will my submission be > rejected? It's not explicitly spelled out in the CRAN policy

Re: [R-pkg-devel] How to declare Bioconductor Dependencies in the Description File of my R Package

2023-03-16 Thread Ivan Krylov
В Thu, 16 Mar 2023 11:09:16 + "Ruff, Sergej" пишет: > The Check-Function in R shows no Notes, Warnings or Errors, but I am > not sure if that means that limma will install when installing my > package from CRAN. > Currently I am declaring limma like this: > > Suggests: > > limma insta

Re: [R-pkg-devel] CRAN submission - Specified C++11

2023-03-15 Thread Ivan Krylov
[I am taking the liberty of Cc-ing the list again because this kind of advice could be useful for other people too.] Dear Riccardo Di Francesco, В Wed, 15 Mar 2023 08:41:01 +0100 Riccardo Di Francesco пишет: >> Please ensure that your functions do not write by default or in >> yourexamples/vign

Re: [R-pkg-devel] Checking timings of packages

2023-03-14 Thread Ivan Krylov
В Tue, 14 Mar 2023 13:52:13 + Chris Brien пишет: > The difficulty I am having is that I cannot be sure that the timings > for r-devel-linux-x86_64-debian-gcc and r-devel-windows-x86_64 will > be under 10 s, as seems to be required, if I were to resubmit the > package to CRAN with the reduced

Re: [R-pkg-devel] URL timeout in win-builder check: suggestions?

2023-03-13 Thread Ivan Krylov
В Mon, 13 Mar 2023 10:28:13 -0400 Ben Bolker пишет: > Found the following (possibly) invalid URLs: >URL: https://phdcomics.com/comics/archive.php?comicid=905 > From: man/pvalues.Rd > Status: Error > Message: Operation timed out after 60010 milliseconds with 0 > bytes received

Re: [R-pkg-devel] CRAN submission - Specified C++11

2023-02-27 Thread Ivan Krylov
В Mon, 27 Feb 2023 10:25:55 +0100 Riccardo Di Francesco пишет: > Specifying C++11 is necessary to make my package work. How can I solve > this? Is it C++11 exactly or C++ ≥ 11? If the former, you're 100% right to specify this (but may have problems in unspecified future when someone decides to s

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

2023-02-26 Thread Ivan Krylov
On Sun, 26 Feb 2023 14:36:22 -0500 wrote: > What I'd like to be able to do is to sanitize the inputs to ensure > that it won't to things including installing packages, running system > commands, reading and writing to the filesystem, and accessing the > network. I'd like to allow the user to do

Re: [R-pkg-devel] Unable to load Windows NETIO.SYS and WINSPOOL.DRV DLLs

2023-02-11 Thread Ivan Krylov
On Sat, 11 Feb 2023 11:19:42 + David Sterratt wrote: > WinDbg output reveals errors loading "NETIO.SYS" and "WINSPOOL.DRV" > when running "library(RGtk2)": > >0c64:0640 @ 44312812 - LdrpProcessWork - ERROR: Unable to load DLL: > "NETIO.SYS", Parent Module: "C:\Users\David > Sterratt\AppD

Re: [R-pkg-devel] Problem with package containing spatial data

2023-02-09 Thread Ivan Krylov
В Wed, 8 Feb 2023 11:32:36 -0300 Igor L пишет: > spatial_aisp <- sf::st_read('data-raw/shp_aisp/lm_aisp_2019.shp') > > plot(spatial_aisp) # works > > # Same data from .rda file after use usethis::use_data(spatial_aisp, > overwrite = TRUE) > > x <- ispdata::spatial_aisp > > plot(x) # do not wo

Re: [R-pkg-devel] How to update "SystemRequirements: C++11"?

2023-02-06 Thread Ivan Krylov
В Mon, 6 Feb 2023 14:46:16 -0600 Winston Chang пишет: > 1. Remove "SystemRequirements: C++11" entirely. The problem with this > is that on systems with older versions of R (3.6 and below, I > believe), it may try to compile the package with an older C++ > standard, which will fail. > 2. Update it

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

2023-02-04 Thread Ivan Krylov
On Fri, 3 Feb 2023 16:28:23 + Brad Eck wrote: > For example R-devel-debian-gcc is ok on rhub > https://builder.r-hub.io/status/epanet2toolkit_0.6.1.tar.gz-58c1ce1e316317307679f58450a5e17a > > But not on CRAN: > https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-gcc/epanet2to

Re: [R-pkg-devel] strange errors (non-ascii symbols) on win-builder R-devel

2023-01-24 Thread Ivan Krylov
On Tue, 24 Jan 2023 17:33:10 + Maxim Nazarov wrote: > this seems to come from the C code I'm 99% sure this comes from the following changes to the package: --- minpack.lm_1.2-2/src/fcn_message.c 2020-03-23 10:54:03.0 +0300 +++ minpack.lm_1.2-3/src/fcn_message.c 2023-01-17 09:30:05

Re: [R-pkg-devel] Pretest failed and I fail to find out what's the problem

2023-01-22 Thread Ivan Krylov
On Sun, 22 Jan 2023 19:51:30 +0100 Klaus Schliep wrote: > package phangorn_2.11.0.tar.gz does not pass the incoming checks > automatically, please see the following pre-tests: Is this the whole e-mail? There may be a list of problems at the end of the message, right after the signature ("Best re

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

2023-01-20 Thread Ivan Krylov
В Fri, 20 Jan 2023 08:41:25 -0600 Spencer Graves пишет: > ** byte-compile and prepare package for lazy loading > Error in parse(nsFile, keep.source = FALSE, srcfile = NULL) : >1:1: unexpected input tools::showNonASCIIfile('https://raw.githubusercontent.com/JamesRamsay5/fda/master/NAMESPACE')

Re: [R-pkg-devel] Failed CRAN tar.gz upload to CRAN

2023-01-13 Thread Ivan Krylov
On Fri, 13 Jan 2023 21:51:01 + Chris Brien wrote: > the package files is being dropped as well. It replaces my file name > with "No file chosen". Consequently I cannot continue submit the > package. I understand that this behaviour is counter-intuitive, but that seems to be the way it's sup

Re: [R-pkg-devel] Failed CRAN tar.gz upload to CRAN

2023-01-13 Thread Ivan Krylov
В Fri, 13 Jan 2023 08:54:50 + Chris Brien пишет: > I am getting the following response when I try to upload > growthPheno_2.1.17.tar.gz: > > Detected package information [non-editable] > In case of errors reupload the package or contact cran team That's not an error. This message is to info

Re: [R-pkg-devel] Mysterious "invalid z limit"

2023-01-08 Thread Ivan Krylov
On Sat, 7 Jan 2023 20:43:10 -0500 "Kevin R. Coombes" wrote: > (1) How is it possible that the same code works error > free in the RStudio contexts, but fails in the attempt to build the > package? When knitting the vignette from RStudio, it uses the package you already have installed. When knit

Re: [R-pkg-devel] Problem with NEWS file

2023-01-07 Thread Ivan Krylov
On Sat, 7 Jan 2023 15:02:18 +0700 Thierry Denoeux wrote: > The NEWS file is a text file created by TextEdit on Mac with UTF-8 > encoding, so I don’t see how there could be hidden special characters > in it. The problem is that the NEWS files are supposed to have a certain format (documented in h

Re: [R-pkg-devel] S3 generic/method consistency false positive when dplyr imported

2023-01-06 Thread Ivan Krylov
(Sorry for the unfinished message. I've got to do something about my mailer to make it harder to send them accidentally.) On Fri, 6 Jan 2023 11:21:49 +0300 Ivan Krylov wrote: > to see where 'filter' appears in the list of generics and where the filter.traj function gets

Re: [R-pkg-devel] S3 generic/method consistency false positive when dplyr imported

2023-01-06 Thread Ivan Krylov
On Thu, 5 Jan 2023 17:58:47 -0500 "Aaron A. King" wrote: > However, since the S3 dispatch system is not itself confused, I > suppose it must be the case that the S3 generic/method consistency > checker itself is confused. I wonder, how does the checker decide > when to throw a NOTE? Is it a sim

Re: [R-pkg-devel] S3 generic/method consistency false positive when dplyr imported

2023-01-04 Thread Ivan Krylov
On Wed, 4 Jan 2023 15:54:52 -0500 "Aaron A. King" wrote: > Why does inclusion of *dplyr* in the import list appear to trigger > these warnings when they were not there before? I think that's because dplyr itself contains an S3 generic named "filter", and having a package namespace loaded (not ev

Re: [R-pkg-devel] Current recommendations re. GitHub Action?

2023-01-04 Thread Ivan Krylov
On Mon, 2 Jan 2023 19:18:33 -0600 Spencer Graves wrote: > However, Ubuntu failed with devel and oldrel1, complaining, > "there is no package called ‘rcmdcheck’". If we start from the error message and work backwards, it's easy to see that `rcmdcheck` fails to install because it depends o

Re: [R-pkg-devel] Suppress R pop up message when using package OpenCL

2022-12-22 Thread Ivan Krylov
(Sorry about the previous message.) В Thu, 22 Dec 2022 10:10:42 +0100 Quirin Stier пишет: > Any ideas how to get rid of the message popping up? You seem to be right that it's a package development question. Currently, as long as there's a non-empty build log, OpenCL will show it using R_ShowMes

Re: [R-pkg-devel] Help with fixing problems for new R package

2022-12-20 Thread Ivan Krylov
В Tue, 20 Dec 2022 10:45:38 +1300 Anna Carolina Resende пишет: > * checking CRAN incoming feasibility ... [5s/25s] NOTE > Maintainer: ‘Anna Carolina Resende ’ > > I read online that it's a note for CRAN so they can check that the > maintainer made changes, could you confirm that that is the case

Re: [R-pkg-devel] How do I enable to show data in inst/extdata in data() || lazy load

2022-12-20 Thread Ivan Krylov
В Tue, 20 Dec 2022 05:28:49 +0530 Sanjeev Sariya пишет: > I need to provide an external data/file in the R package. This has > come as a request from F1000 journal editors. Would the journal editors agree to have this data in the form of an R object? Is it a strict requirement to have this file

Re: [R-pkg-devel] How do I enable to show data in inst/extdata in data() || lazy load

2022-12-19 Thread Ivan Krylov
On Mon, 19 Dec 2022 20:59:27 +0530 Sanjeev Sariya wrote: > ... I have created a .Rd file. > I'm interested in listing this file in data() ... My understanding is that data() is for R-level objects, and so is help(), most likely. One way to solve this could be to write a script that imports the

Re: [R-pkg-devel] Question on Description/Citing Feedback

2022-12-16 Thread Ivan Krylov
On Fri, 16 Dec 2022 10:06:44 -0800 Michael Topper wrote: >- I understand the Description portion of the DESCRIPTION file > needs to be edited, but I'm a little confused as to what I am > supposed to add and how. Do I need to include a citation to the > published paper of modelsummary Yes, ex

Re: [R-pkg-devel] Do you run R on Fedora or Debian?

2022-12-11 Thread Ivan Krylov
On Sat, 10 Dec 2022 14:00:22 -0800 Roy Mendelssohn - NOAA Federal via R-package-devel wrote: > CRAN has sent me a notice about the following: > > https://www.stats.ox.ac.uk/pub/bdr/donttest/rerddapXtracto.out > > I can not reproduce it. I test on my Mac, the cache space is > properly handled

Re: [R-pkg-devel] Do you run R on Fedora or Debian?

2022-12-10 Thread Ivan Krylov
On Sat, 10 Dec 2022 14:00:22 -0800 Roy Mendelssohn - NOAA Federal via R-package-devel wrote: > cache_setup(temp_dir = TRUE) Unfortunately, it prints a path under tempdir() for me on my Debian oldstable machine. I see that the error came from the "donttest" check from an extra test that's not on

Re: [R-pkg-devel] Package fails on Debian

2022-12-10 Thread Ivan Krylov
On Fri, 9 Dec 2022 17:29:21 + Stephen Coleman wrote: > ``outlierComponentFactory.h:37:15: error: ‘unique_ptr’ in namespace > ‘std’ does not name a template type``. Does it help to explicitly #include in outlierComponentFactory.h in order to provide the definition of the template class uniqu

Re: [R-pkg-devel] Error uploading file on CRAN

2022-12-05 Thread Ivan Krylov
On Mon, 5 Dec 2022 11:14:19 +0400 "Jahajeeah, Havisha" wrote: > Will a binary package resolve the above issue? Due to an interaction between the way R binary packages work and the way you have implemented the Greymodels:::ui variable, this binary package will only work on your computer. (And, we

Re: [R-pkg-devel] Error uploading file on CRAN

2022-11-30 Thread Ivan Krylov
В Wed, 30 Nov 2022 16:10:22 +0400 "Jahajeeah, Havisha" пишет: > How do I fix this problem? Kindly advise. I think I know what could be the problem. Your run_app function calls shiny::shinyApp(ui, server, options = list(launch.browser = TRUE)). Here, `ui` is an object of class "shiny.tag". I thi

Re: [R-pkg-devel] Error uploading file on CRAN

2022-11-30 Thread Ivan Krylov
В Wed, 30 Nov 2022 14:17:54 +0400 "Jahajeeah, Havisha" пишет: > To run the app, we use: > > install.packages("Greymodels") > library(Greymodels) > run_app() > > The app worked fine on Monday. Today it is showing error. > > Please see below traceback() > > 13: execCallbacks(timeoutSecs, all,

Re: [R-pkg-devel] Error uploading file on CRAN

2022-11-30 Thread Ivan Krylov
В Wed, 30 Nov 2022 13:43:21 +0400 "Jahajeeah, Havisha" пишет: > but now I am getting the following error: > > An error has occurred! > > Couldn't normalize path in `addResourcePath`, with arguments: > `prefix` = 'AdminLTE-2.0.6'; `directoryPath` = > 'D:/RCompile/CRANpkg/lib/4.2/shinydashboard/A

Re: [R-pkg-devel] Logical Inconsistency of check regarding URL?

2022-11-29 Thread Ivan Krylov
Dear Michael, On Tue, 29 Nov 2022 08:19:40 +0100 "Dr. habil. Michael Thrun" wrote: > URL: https://www.deepbionics.org (moved to > https://mthrun.github.io/index) > From: DESCRIPTION > Status: 301 > Message: Moved Permanently > Please change http --> https, add trailing slashes, or follow moved

Re: [R-pkg-devel] Missing link or links in documentation object

2022-11-28 Thread Ivan Krylov
В Mon, 28 Nov 2022 15:34:53 +0100 Ibon Tamayo пишет: > \code{\link[R6::R6Class]{R6::R6Class}} I think you need only one colon in the first argument of \link[pkg:foo]{bar}: https://cran.r-project.org/doc/manuals/R-exts.html#Cross_002dreferences -- Best regards, Ivan ___

Re: [R-pkg-devel] Error uploading file on CRAN

2022-11-27 Thread Ivan Krylov
On Sun, 27 Nov 2022 20:29:10 +0400 "Jahajeeah, Havisha" wrote: > The Greymodels package has been debugged and the updated package has > been published on Github. Congratulations on getting it working! > I would be very much grateful if the app could be updated on CRAN. Please do it the same w

Re: [R-pkg-devel] Note on submission Found the following files/directories: 'NUL'

2022-11-25 Thread Ivan Krylov
В Fri, 25 Nov 2022 13:10:39 +0300 Ivan Krylov пишет: > It also breaks the non-default sink, if any was set up by the user. That's not correct, I'm sorry. sink() maintains a stack of diversions and will automatically restore the user-chosen sink(), if any was set up, when you c

Re: [R-pkg-devel] Note on submission Found the following files/directories: 'NUL'

2022-11-25 Thread Ivan Krylov
В Fri, 25 Nov 2022 09:59:10 + "ROTOLO, Federico /FR" пишет: > When submitting my package parfm, I get the following note > Flavor: r-devel-linux-x86_64-debian-gcc > Check: for non-standard things in the check directory, Result: NOTE > Found the following files/directories: > 'NUL' > so

Re: [R-pkg-devel] request to remove/archive package from CRAN

2022-11-23 Thread Ivan Krylov
В Wed, 23 Nov 2022 13:50:01 + Kopperud пишет: > Is it possible to request for a package to be removed/archived from > CRAN? The policy implies it should be possible: >> Packages will not normally be removed from CRAN: however, they may >> be archived, including at the maintainer’s request.

Re: [R-pkg-devel] Too many processes spawned on Windows and Debian, although only 2 cores should be used

2022-11-15 Thread Ivan Krylov
В Wed, 16 Nov 2022 07:29:25 +0100 Riko Kelter пишет: > if (nzchar(chk) && chk == "TRUE") { > # use 2 cores in CRAN/Travis/AppVeyor > num_workers <- 2L > } The check in parallel:::.check_ncores is a bit different: chk <- tolower(Sys.getenv("_R_CHECK_LIMIT_CORES_", "")) if (nzchar(chk) && (chk

Re: [R-pkg-devel] How ton print in the console from Rcpp

2022-11-14 Thread Ivan Krylov
В Sun, 13 Nov 2022 11:29:21 + Elysée Aristide пишет: > The only difference I saw is that all those packages put > > #define NDEBUG > > after #include . > I did the same thing without understanding :) Glad you got it working! If you're curious why it helped, see

Re: [R-pkg-devel] vignettes - size of pdf

2022-11-11 Thread Ivan Krylov
В Fri, 11 Nov 2022 12:54:52 + "Grose, Daniel" пишет: > * checking sizes of PDF files under 'inst/doc' ... WARNING > 'gs+qpdf' made some significant size reductions: > compacted 'cpop.pdf' from 805Kb to 547Kb > consider running tools::compactPDF(gs_quality = "ebook") on these > files

Re: [R-pkg-devel] Error uploading file on CRAN

2022-11-07 Thread Ivan Krylov
В Mon, 7 Nov 2022 14:55:06 +0400 "Jahajeeah, Havisha" пишет: > The Greymodels package loads data from spreadsheets and each model > accepts a set of data and outputs the values. However, the package > is unable to do that because of the error: cannot open connection. Thank you for clarifying th

Re: [R-pkg-devel] Error uploading file on CRAN

2022-11-07 Thread Ivan Krylov
В Mon, 7 Nov 2022 12:30:35 +0400 "Jahajeeah, Havisha" пишет: > After loading the package on CRAN, when I try to upload file (xlsx or > xls) the following error appears: > > Error: cannot open the connection Do you mean uploading files into your Shiny application, or somewhere else? Have you tr

Re: [R-pkg-devel] Examples with CPU time is greater than elapsed time.

2022-11-05 Thread Ivan Krylov
On Sat, 5 Nov 2022 22:41:45 +0800 Jiaming Yuan wrote: >Examples with CPU time > 2.5 times elapsed time > I'm wondering what the note is trying to tell me and how can I > resolve it with confidence. Henrik Bengtsson already gave a good explanation of the problem. Not sure what exactly is th

Re: [R-pkg-devel] Best way to restore an archived CRAN package

2022-10-30 Thread Ivan Krylov
В Sun, 30 Oct 2022 16:56:03 +0900 "Stefan Angrick" пишет: > Writing code to digest the new data format is straightforward, so I'd > like to bring the package back. Unfortunately I'm unable to reach the > original author, so I'm unsure how to proceed. > > Does CRAN allow for people other than the

Re: [R-pkg-devel] Latex issue on CRAN: Package pdftex.def Error

2022-10-30 Thread Ivan Krylov
В Sun, 30 Oct 2022 14:48:05 +0100 r...@nbenn.ch пишет: > It seems like when building the PDF manual, an image that should be > included is not found and then things fall apart, causing both the > error and note. For all I know, the image should be there unter > `man/figures/`. Is it the following

Re: [R-pkg-devel] How ton print in the console from Rcpp

2022-10-20 Thread Ivan Krylov
В Thu, 20 Oct 2022 12:43:30 +0200 Elysée Aristide пишет: > What I understood is that it is better to use Rcpp functions. So I > used: > > Rcpp::Rcout << "beta: \n"; > Rcpp::print(betacpp); > Rcpp::Rcout << "log-likelihood: " << llh << "\n"; This seems to be a right way of printing from Rcpp cod

Re: [R-pkg-devel] R package build- C compilation issue related to math.h

2022-10-20 Thread Ivan Krylov
On Wed, 19 Oct 2022 23:39:57 +0100 Vincent Plagnol wrote: > gcc-12 -I"/home/hornik/tmp/R/include" -DNDEBUG -I/usr/local/include > -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2 -fpic -g -O2 -Wall > -Wstrict-prototypes -pedantic -mtune=native -c VP_gamma.c -o > VP_gamma.o > /usr/include/x86

Re: [R-pkg-devel] Invalid UTF-8

2022-10-17 Thread Ivan Krylov
В Mon, 17 Oct 2022 11:07:25 +0200 Göran Broström пишет: > warning: invalid UTF-8 in comment [-Winvalid-utf8] > (It's my name) > > So I wonder: How do I make valid UTF-8 in comment? The file GB_zeroin.c is saved in Latin-1 encoding. The warning should go away once you convert it to UTF-8. -- B

Re: [R-pkg-devel] Problems with news in ‘NEWS’

2022-10-13 Thread Ivan Krylov
В Wed, 12 Oct 2022 20:16:20 -0500 Spencer Graves пишет: > I copied NEWS to NEWS.md and tried to format it as described in: > > > https://r-pkgs.org/other-markdown.html#news > > > Sadly, I still get the same error. It seems to be ignoring > my NEWS.md file and continuing to tell me I

Re: [R-pkg-devel] Identify Original Column Names of Model Matrix

2022-10-11 Thread Ivan Krylov
On Mon, 10 Oct 2022 08:00:04 + Dario Strbenac wrote: > It requires input data to be in one-hot encoding, which is created by > Matrix::sparse.model.matrix. For further analysis, such as variable > importance, is there a way to identify which original feature each > column of a sparse.model.ma

Re: [R-pkg-devel] How to decrease time to import files in xlsx format?

2022-10-04 Thread Ivan Krylov
On Tue, 4 Oct 2022 15:29:54 -0300 Igor L wrote: > The problem is that importing files in xlsx format is time consuming. Do the openxlsx or XLConnect packages fare any better? > plan(strategy = future::multicore(workers = 4)) As far as I understand the documentation, multicore only works on POS

Re: [R-pkg-devel] Help - Shiny app on CRAN

2022-09-26 Thread Ivan Krylov
It might be easier to help you if you show us your package by publishing the source code somewhere. On Mon, 26 Sep 2022 22:22:48 +0400 "Jahajeeah, Havisha" wrote: > CIvalue2: no visible global function definition for 'qt' > andgm11: no visible binding for global variable 'ParticleSwarm' > andgm1

Re: [R-pkg-devel] Unable to create manual

2022-09-26 Thread Ivan Krylov
On Mon, 26 Sep 2022 10:50:01 -0700 Edward Wei wrote: > 1. Where do I run "make check"? In the directory where R is built from source. If you're using a binary build of R, this isn't applicable. > 3. I get this back when I run the "tools::testInstalledPackages(scope > = "base")" on my RGUI. > >

Re: [R-pkg-devel] Help - Shiny app on CRAN

2022-09-26 Thread Ivan Krylov
В Mon, 26 Sep 2022 19:14:04 +0400 "Jahajeeah, Havisha" пишет: > * checking extension type ... ERROR > Extensions with Type 'Shiny application' cannot be checked. Since you're writing a package, you can either specify Type: Package in the DESCRIPTION file, or omit the field entirely: https://cran

Re: [R-pkg-devel] debian - how to replicate the error

2022-09-20 Thread Ivan Krylov
On Tue, 20 Sep 2022 03:28:09 + "Zhang, Xueqiong" wrote: > I don’t have a linux box, and was not able to check it via > r-hub-linux-platforms since some of bioc dependencies are not > installed on r-hub. What should I do for the error check, any ideas? There are Debian builds for both x86_64

Re: [R-pkg-devel] Examples taking too long depend on object that takes a while to generate

2022-09-14 Thread Ivan Krylov
On Wed, 14 Sep 2022 12:31:49 -0400 Duncan Murdoch wrote: > It's also possible to put .R files in the data directory, and they > are executed to create the data object. I think that happens at the > time when you call data() rather than at install time, so it might > not be helpful. Some time ag

<    1   2   3   4   >