Displaying 20 results from an estimated 2000 matches similar to: "New S3 methods for optional package"
2023 Nov 09
1
Why Rprofile.site is not built with manual installation of R devel in linux?
Hi all,
I downloaded R-devel as explicited in https://developer.r-project.org/SVNtips.html
Then, I tried to install it through instructions in https://cran.r-project.org/doc/manuals/r-devel/R-admin.html#Installation
(taking into account also https://stat.ethz.ch/pipermail/r-devel/2016-May/072777.html)
So:
export REPOS=https://svn.r-project.org/R
export RTOP=~ #adjust as necessary
cd $RTOP
svn co
2023 Nov 09
1
[R] Why Rprofile.site is not built with manual installation of R devel in linux?
No clue. Tip: R-devel is the mailing list for anything related to development versions of R. Off-topic here.
On November 9, 2023 2:59:44 AM PST, "Iago Gin? V?zquez" <iago.gine at sjd.es> wrote:
>Hi all,
>
>I downloaded R-devel as explicited in https://developer.r-project.org/SVNtips.html
>Then, I tried to install it through instructions in
2023 Nov 09
1
[R] Why Rprofile.site is not built with manual installation of R devel in linux?
No clue. Tip: R-devel is the mailing list for anything related to development versions of R. Off-topic here.
On November 9, 2023 2:59:44 AM PST, "Iago Gin? V?zquez" <iago.gine at sjd.es> wrote:
>Hi all,
>
>I downloaded R-devel as explicited in https://developer.r-project.org/SVNtips.html
>Then, I tried to install it through instructions in
2014 Jul 14
1
Error in compactPDF/find_gs_cmd or documentation?
I am using tools::compactPDF for reducing the size of some pdf-files
with GhostScript. I had some trouble in the beginning as the
documentation seems not to match the usage of the function. For
GhostScript, one has to set the argument gs_cmd, which has the following
description:
gs_cmd - Character string giving the path to the GhostScript executable,
if that is to be used. On Windows this is
2017 Dec 07
1
Please to remove the warning when trying to check a package.
Hello Sir,
I have been trying to create a package in R.
When I have put the check option in R studio to check everything is ok that
time I have found
two warnings and three notes. Those are given below.
warnings:
1) * checking dependencies in R code ... WARNING
'::' or ':::' import not declared from: 'SparseM'
'loadNamespace' or 'requireNamespace' calls
2015 Jul 21
2
' --enable-R-shlib' problem when setting up R-devel in Linux Mint 17.1 64-bit
On 21 July 2015 at 02:15, MAURICIO ZAMBRANO BIGIARINI wrote:
| Regarding the previous problem with setting up r-devel in Linux Mint
| 17.1 64-bit, I deleted all the r-devel files I previously had, and
| then I did the check out to the
|
| '~/svn/r-devel'
|
| directory originally mentioned by by Dirk on
| https://stat.ethz.ch/pipermail/r-sig-debian/2012-August/001935.html,
| instead of
2014 Sep 12
1
requireNamespace() questions
I am trying to follow directions at
http://cran.r-project.org/doc/manuals/r-patched/R-exts.html#Suggested-packages
regarding handling suggested packages with requireNamespace() rather
than require(), and I have some questions.
1/ When I do requireNamespace() in a function is the loading of the
namespace only effective within the function?
2/ At the link above in the manual it says "Note
2015 Jul 21
0
' --enable-R-shlib' problem when setting up R-devel in Linux Mint 17.1 64-bit
> On 21 Jul 2015, at 13:13 , Dirk Eddelbuettel <edd at debian.org> wrote:
>
>
> You somehow boxed yourself into a corner, out of which you now seem to have
> escaped, which is good. The proper sequence (svn checkout ...; configure
> ...; make ...) will work no matter what name you give the directory you work
> in.
>
You may want to avoid building in the source
2014 Sep 28
1
Using requireNamespace() instead of require()
Suppose I have a function funcA() in package pkgA that requires function funcB() from another package pkgB under certain circumstances. Those circumstances are rare though, so I put package pkgB under 'Suggests', and use this in funcA() when those circumstances do arise:
if (require("pkgB", quietly=TRUE)) {
pkgB::funcB(...)
} else {
stop("Please install package
2015 Feb 24
3
alternatives to do.call() when namespace is attached but not loaded?
Dear R-devel
I have a function in a package that essentially provides a wrapper for a
group of functions in another Suggested package (it sets appropriate
defaults for the context, transforms output, etc). I've implemented
this by verifying that the package was loaded with
require(sna)
and then
do.call(snaFunName, args = args)
The rDevel check is requesting that I use
2016 Apr 02
3
Suggested dependencies in context of R CMD check
Dear R team,
Are suggested dependencies mandatory in context of `R CMD check` when
using env var `_R_CHECK_FORCE_SUGGESTS_=FALSE`?
Suggested dependencies are nice because are optional.
But that feature often isn't valid when trying to run `R CMD check` on them.
I would like to use `export _R_CHECK_FORCE_SUGGESTS_=FALSE`, which
according to the comment in `tools/R/check.R`:
> The
2020 Oct 11
3
Installing bioconduction packages in connection with loading an R package
Dear all,
My gRbase package imports functionality from the bioconductor packages graph, Rgraphviz and RBGL.
To make installation of gRbase easy, I would like to have these bioconductor packages installed in connection with installation of gRbase, but to do so the user must use setRepositories() to make sure that R also installs packages from bioconductor.
Having to call setRepositories causes
2019 Jul 23
2
[External] Re: quiet namespace load is noisy
Dear Russ,
I had the same problem in my vignettes and setting both message and warning
to FALSE seems to remove all unwanted output:
```{r message=FALSE, warning=FALSE}
library("afex")
library("ggplot2")
library("cowplot")
theme_set(theme_grey())
```
Result:
https://cran.r-project.org/web/packages/afex/vignettes/afex_plot_introduction.html
Best,
Henrik
Am Di.,
2013 Apr 04
5
help with kriging interpolation
All,
I am new to using R and know some basics. I wish to use kriging in R to
do the following:
given data Y =f(X1,X2,X3,.....,Xn) --1000+ irregular measured data set.
I would like to be able to get a single value y given sinle input set
(x1,x2,x3,...xn)
A google search on this takes me lierally to the same example on involving
analysis with soil sampling and I cannot figure out how to
2019 Jul 23
2
quiet namespace load is noisy
Dear R-devel,
Consider the following clip (in R version 3.6.0, Windows):
> requireNamespace("ggplot2", quietly = TRUE)
Registered S3 methods overwritten by 'ggplot2':
method from
[.quosures rlang
c.quosures rlang
print.quosures rlang
It seems to me that if one specifies 'quietly = TRUE', then messages about S3 method
2019 Oct 09
2
S3 lookup rules changed in R 3.6.1
tl;dr: S3 lookup no longer works in custom non-namespace environments as of
R 3.6.1. Is this a bug?
I am implementing S3 dispatch for generic methods in environments that are
not
packages. I am trying to emulate the R package namespace mechanism by
having a
?namespace? environment that defines generics and methods, but only exposes
the
generics themselves, not the methods.
To make S3 lookup work
2019 Sep 08
6
Error: package or namespace load failed for ‘utils
Hi,
When starting an embedded R I encounter the following issue under certain
conditions:
```
Error: package or namespace load failed for ?utils? in if (.identC(class1,
class2) || .identC(class2, "ANY")) TRUE else {:
missing value where TRUE/FALSE needed
```
(more such errors for grDevices, graphics, and stats)
And in the end:
```
Warning messages:
1: package ?utils? in
2019 Jul 23
2
[External] Re: quiet namespace load is noisy
Lionel,
Thanks for your response. I understand that method overriding can be a serious issue, but as you say, this is not something that the user can act upon. Yet the message lands at the user?s feet.
In my case, the messages are cluttering my package vignettes, and may or may not represent what users see if they themselves run the vignette code, depending on what version of ggplot2, etc. they
2015 Mar 25
2
vignette checking woes
Thierry,
I have this:
if (require(MatrixModels) && require(Matrix)) {
X <- model.Matrix(Terms, m, contrasts, sparse = TRUE)
in my function rqss() I've tried variants of requireNamespace too without success.
If I understand properly model.Matrix is from MatrixModels but it calls
sparse.model.matrix which is part of Matrix, and it is the latter function that I'm
not
2019 Nov 08
4
improving the performance of install.packages
Hi Gabe,
Keeping track of where a package was installed from would be a nice
feature. However it wouldn't be as reliable as comparing hashes to
decide whether a package needs re-installation or not.
H.
On 11/8/19 12:37, Gabriel Becker wrote:
> Hi Josh,
>
> There are a few issues I can think of with this. The primary one is that
> CRAN(/Bioconductor) is not the only place one