access specific optional functionality.
--
Brian G. Peterson
ph: +1.773.459.4973
im: bgpbraverock
On Fri, 2025-03-07 at 07:36 -0800, Josiah Parry wrote:
> Whereas, I just had a CRAN submission fail for using \dontrun{} just
> once!
> 🙈
>
> On Fri, Mar 7, 2025 at 06:47 McCrowey, Cli
Add 'MASS' to either Suggests or Imports
If you add it to Imports, you'll need to add the requisite function
imports, but if the only place you use MASS is in 'demo' (maybe a more
searchable name is in order here?), then 'Suggests' should be plenty.
Brian
On Fri, 2025-02-07 at 03:57 +, Ri
pattern is something like this:
if(optimize_method=="pso"){
stopifnot("package:pso" %in% search() ||
requireNamespace("pso",quietly = TRUE) )
# ...
}
where all the code that requires the 'pso' engine in this example is
contained inside the i
ting an svn repo to git:
Ref:
https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository
--
Brian G. Peterson
ph: +1.773.459.4973
im: bgpbraverock
On Mon, 2024-07-01 at 18:04 -0400, Kevin R. Coombes wrote:
>
On 12/15/22 08:34, Ismail Otoakhia wrote:
The R package 'ardl.nardl' has some examples that take more than 5 seconds
to run. I was advised by the CRAN team to reduce the run time to less than
5 seconds.
How can this be achieved?
- you can lower the amount of data in the example
- you can use
On Fri, 2020-08-07 at 15:46 +0100, Gábor Csárdi wrote:
> If you want to link to a package in the documentation, you'll have to
> add it to Suggests.
This doesn't make any sense. If you don't use the code from that
package anywhere, then a cross-reference to that package should not
require the e
On Mon, 2020-03-30 at 10:18 -0400, Kelsey Chetnik wrote:
> Hi,
>
> I am submitting a package to CRAN for the first time and I am not
> sure what
> the following error means and how to solve it:
> https://win-builder.r-project.org/incoming_pretest/MetaClean_0.1.0_20200330_150936/Windows/00install.o
timings are similarly 4-5x slower on the Windows
experimental toolchain.
Brian
On Wed, 2020-02-05 at 14:59 +, Gábor Csárdi wrote:
> Can you please show some numbers?
>
> Thanks,
> Gabor
>
> On Wed, Feb 5, 2020 at 2:40 PM Brian G. Peterson > wrote:
> > We've
ackage PerformanceAnalytics to
CRAN, but the Windows experimental toolchain is preventing a 100% clean
set of checks.
Regards,
Brian
--
Brian G. Peterson
ph: +1.773.459.4973
im: bgpbraverock
__
R-package-devel@r-project.org mailing list
https://stat
. otherwise create the subdirectory of the
current working directory, load from the internet, and save the data
locally.
In this way you've had the user explicitly direct the function to save
data to disk, which is (usually) OK.
Regards,
Brian
--
Brian G. Peterson
ph: +1.773.459.49
formation that might help you
sort it out.
https://cran.r-project.org/web/packages/gcbd/vignettes/gcbd.pdf
Regards,
Brian
--
Brian G. Peterson
ph: +1.773.459.4973
im: bgpbraverock
__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/m
Normally you do not need to specify @usage in roxygen source files.
As Duncan noted, without seeing everything, we are only guessing, but I
suspect that you have tried to combine manual @usage directives with
@alias or @Rdfile directives in the roxygen for the other functions.
If my guesses a
on't want to import all of 'methods', as I only need one function.
What am I doing wrong?
Regards,
Brian
--
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock
__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
I think
you should discuss this with the CRAN maintainers and release the
package under GPL.
Regards,
Brian
--
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock
On Tue, 2018-04-10 at 11:45 +0200, Kasper Daniel Hansen wrote:
> There are 3 solutions. (1) You (ge
Why not add an install function to foyer that would get the large data package?
Have examples and vignette use a small test data set, so only end users would
actually install the large data set.
Regards,
Brian
--Brian G. Peterson ph: 773-459-4973im: bgpbraverockSent from my mobile, please
... bumping this in the hopes that someone has an answer ...
On Fri, 2018-01-26 at 10:35 -0600, Brian G. Peterson wrote:
> I'm preparing a new release of PerformanceAnalytics, and as usual
> this brings the host of CRAN checks.
>
> I get this note:
>
> * checking S3 gen
to tell R that these *aren't* S3 methods ...
Any insight would be greatly appreciated.
Regards,
Brian
--
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock
__
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
__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
--
Brian G. Peterson
http://braverock.com/brian
I think you should be using:
Additional_repositories: https://github.com/mrdwab/SOfun
since that is the actual repository.
Regards,
Brian
On Wed, 2017-11-08 at 17:01 +0100, LUCA BELMONTE wrote:
> Good evening,
>
> I am trying to upload my package, called PdPDB 2.0.
> When building and checkin
(0.9.0) of the
package ...
The URL's you've referenced have both expired.
I would suggest re-running your package checks using R-devel on RHub and
Winbuilder first, and copying any output you receive.
Then it will be easier for others to help you.
Regards,
Brian
--
Brian G. Peterson
htt
On Sun, 2017-06-04 at 22:56 +0300, Konstantin Sorokin wrote:
> I've recently submitted my first package on CRAN and now need to make
> some improvements on feedback received from CRAN maintainers.
>
> https://github.com/thekvs/zstdr
> https://cran.r-project.org/web/packages/zstdr/index.html
>
>
On Mon, 2017-05-15 at 16:09 +, Christopher Lalansingh wrote:
> Hi everyone,
>
>
> I'm preparing to release a package which uses doMC for
> parallelization in certain functions. I've used require(doMC) to
> specify this for these functions, and importFrom("doMC",
> "registerDoMC") in my NAMESP
l, tex
or pdf file could be output. At some point I may try to clean it up a bit
and then maybe the error messages will be less obscure.)
Duncan Murdoch
[[alternative HTML version deleted]]
__
R-package-devel@r-project.org mailin
On Mon, 2017-03-06 at 11:17 +0100, Thierry Onkelinx wrote:
> I'd like your advice on handling errors conditionally within a
> function. Imagine a function that does several database operations.
> The user has the option to run them inside a transaction. So the code
> has somewhere near the top:
>
tupidity.”
> “Never forget that everything Hitler did in Germany was legal.”
> “Forgiveness is not an occasional act, it is a constant attitude.”
> “Injustice anywhere is a threat to justice everywhere.”
>
> ― Martin Luther King Jr.
>
>
> On Mon, Jan 30, 2017 at 10:
quot;, "pf", "ts", "var")
> importFrom("utils", "read.table", "str", "tail", "write.table")
> to your NAMESPACE file.
>
> Cathy Lee Gierke
> “Darkness cannot drive out darkness: only light can do that. Hate
&g
On Mon, 2017-01-30 at 09:45 -0600, Cathy Lee Gierke wrote:
> building ‘CATkit_2.06.tar.gz’
R CMD build creates a tarball
> x-134-84-0-217:CATkit user$ *R CMD check CATkit*
but you are checknig the directory, not the tarball.
do
R CMD check CATkit_2.06.tar.gz
instead.
Regards,
Brian
_
In the text of a vignette, I always refer to them with links, just like
I would in other documentation:
\code{\link[xts]{to.period}}
and if I want to be explicit to the reader (who my be reading a format
where the links don't resolve, I would say something like:
see \code{\link[xts]{to.period}}
In your examples section, do something like this:
\donttest{
Sys.sleep(100) # long running example code here
}
--
Brian
On Mon, 2016-10-03 at 10:44 -0700, Roy Mendelssohn - NOAA Federal wrote:
> Hi Hadley:
>
> > You can use \donttest{} to tell CRAN to not run it as part of their
> > aut
ot; section, it
passes. However, I've no clue why.
I will appreciate any help on this.
I have roxygen set to not Collate on all my development machines.
Unless you're using S4 with complicated inheritance, you shouldn't need
it, and it has caused me many headaches.
Regards,
Br
On Tue, 2016-03-22 at 08:52 -0400, Kevin Coombes wrote:
> I'm currently developing an R package that includes a small data set
> along with the functions that I want to export. I have an R script that
> generates the data set; the computation time is long (well, relative to
> the size of the dat
installation (do I re-install
it) or from rcmd Rd2pdf ?
Any other user having experienced the same problem ?
Patrick
__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
--
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock
__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
ng other than a
demonstration of rendering something to HTML would ever make sense.
I think most people explore functions by typing ?functionName
Why not just put the links in the documentation for your function?
--
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraver
haracters are
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
(RFC3986, p. 12)
One would assume that R should also allow all unreserved characters in
file names for documents, vignettes, etc.
Regards,
Brian
--
Brian G. Pete
34 matches
Mail list logo