Displaying 20 results from an estimated 11000 matches similar to: "Best way to implement optional functions?"
2015 Nov 16
2
Best way to implement optional functions?
On 16/11/2015 4:00 AM, Richard Cotton wrote:
> On 22 October 2015 at 22:55, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
>> I'm planning on adding some new WebGL functionality to the rgl package, but
>> it will pull in a very large number of dependencies. Since many people won't
>> need it, I'd like to make the new parts optional.
>
>> Can
2015 Oct 22
0
Best way to implement optional functions?
On Thu, 2015-10-22 at 15:55 -0400, Duncan Murdoch wrote:
> I'm planning on adding some new WebGL functionality to the rgl package,
> but it will pull in a very large number of dependencies. Since many
> people won't need it, I'd like to make the new parts optional.
>
> The general idea I'm thinking of is to put the new stuff into a separate
> package, and have
2015 Oct 22
0
Best way to implement optional functions?
On 10/22/2015 03:55 PM, Duncan Murdoch wrote:
> I'm planning on adding some new WebGL functionality to the rgl package,
> but it will pull in a very large number of dependencies. Since many
> people won't need it, I'd like to make the new parts optional.
>
> The general idea I'm thinking of is to put the new stuff into a separate
> package, and have rgl
2016 Jan 30
2
Best way for rgl's .onLoad to fail?
On OSX and Linux, the rgl package currently requires X11 libs to be
available for linking. Recent versions of OSX don't include them by
default, so I'd like rgl to fail nicely.
Ideally, it will load a library that doesn't need to link to the X11
libs but will still allow WebGL code to work, but that's complicated, so
I'd like a stopgap.
I can detect that the failure is
2016 Feb 01
2
Best way for rgl's .onLoad to fail?
>>>>> "BH" == Bryan Hanson <hanson at depauw.edu>
>>>>> on Sun, 31 Jan 2016 09:50:46 -0500 writes:
BH> I think the 2nd option will be more palatable to
BH> inexperienced users, but both do state the important
BH> detail. Bryan
>> On Jan 30, 2016, at 4:11 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
2015 Nov 16
0
Best way to implement optional functions?
On 22 October 2015 at 22:55, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> I'm planning on adding some new WebGL functionality to the rgl package, but
> it will pull in a very large number of dependencies. Since many people won't
> need it, I'd like to make the new parts optional.
> Can people suggest other packages that solve this kind of problem in a good
2015 Sep 12
3
rgl/webGL complains about Javascript, even in recent online docs?
On 12/09/2015 7:37 AM, Duncan Murdoch wrote:
> On 11/09/2015 10:14 PM, Dominick Samperi wrote:
>> Hello,
>>
>> The recently created online "rgl Overview" at
>> https://cran.r-project.org/web/packages/rgl/vignettes/rgl.html
>> illustrates a problem that I am trying to resolve.
>>
>> At the bottom of each image block on that page appears the
2015 Sep 12
1
rgl/webGL complains about Javascript, even in recent online docs?
FYI, one platform where I have not been able to get interactive rgl
working is iOS 8.
iOS 8 is supposed to support WebGL, and Javascript is enabled.
On Sat, Sep 12, 2015 at 4:33 PM, Dominick Samperi <djsamperi at gmail.com> wrote:
> Thanks for the pointers and the quick fix.
>
> Perhaps the generated HTML code should issue a
> message like "Javascript load problem"
2015 Sep 12
2
rgl/webGL complains about Javascript, even in recent online docs?
Hello,
The recently created online "rgl Overview" at
https://cran.r-project.org/web/packages/rgl/vignettes/rgl.html
illustrates a problem that I am trying to resolve.
At the bottom of each image block on that page appears the
advisory: You must enable Javascript to view this page properly.
I am using Safari under MacOS with Javascript and WebGL
both enabled, so it must be the
2016 Feb 01
1
Best way for rgl's .onLoad to fail?
If I recall it correctly, at least on Linux, rgl only needs X11 when
rgl.useNULL(FALSE). Is that correct? If so, I would say dependency
on X11 is optional and therefore you should be able to load the
package even without X11. Or is it that it still requires X11 libs
but not an X11 server?
My $.02
/Henrik
On Mon, Feb 1, 2016 at 1:44 AM, Duncan Murdoch <murdoch.duncan at gmail.com>
2012 Dec 03
3
error of installing/building an R package (PortfolioAnalytics) on Win 7
Hi,
I am trying to install a package (PortfolioAnalytics) of R 2.15.2 on Win 7.
I have tried the following instructions on :
http://stackoverflow.com/questions/11105131/cannot-install-r-forge-package-using-install-packages
I used svn checkout svn://svn.r-forge.r-project.org/svnroot/returnanalytics/ to
get the package and then copy it to my Win 7.
Then, on Win 7 I run:
>
2012 Nov 16
2
Question about contour3d and writeWebGL: rgl and misc3d package
I saw that in rgl:::writeWebGL that "Polygons will only be rendered as
filled; there is no support in WebGL for wireframe or point rendering.". I
found that you can easily use contour3d to make reproducible contour web
figures, such as (taken from contour3d help)
library(AnalyzeFMRI)
a <- f.read.analyze.volume(system.file("example.img", package=
2015 Oct 23
0
Best way to implement optional functions?
I'm relieved to read that this issue is becoming more visible. In my own
work on optimizers, I've been finding it awkward to provide a clean
solution to allowing users to run e.g., optimx, when some optimizers are
not installed. Unfortunately, I've not found what I consider to be a
solution with any elegance.
JN
On 15-10-23 06:00 AM, r-devel-request at r-project.org wrote:
>
2015 Jul 05
1
Are import-reexport-only packages allowed on CRAN?
One piece of feedback that I received at useR was that the assertive
package is getting too big, and should be broken down into smaller
pieces.
I want to split the functionality into assertive.base,
assertive.types, and a few others, then have the assertive package as
a virtual package (suggestions for better terminology welcomed) that
just imports and reexports the contents of the underlying
2014 Oct 30
1
'library' or 'require' call not declared from: 'rgl'
I'm checking a new release of vcdExtra via win builder with R-devel
2014-10-29 r66897
and have run into a Warning I don't know how to fix.
I have one S3 generic, mosaic3d() that uses rgl and don't want to have
rgl always loaded
via Depends:. Instead, the mosaic3d.default() method includes
if (!require(rgl)) stop("rgl is required")
This always worked in the past, but
2006 Sep 21
1
Package dependencies and imports
Dear list members,
I'm encountering the following problem with package dependencies and
imports:
The Rcmdr package doesn't declare a formal dependency (via depends or
suggests in the package DESCRIPTION) on the rgl package because the latter
apparently causes problems on some systems. This allows the Rcmdr package to
build and check on systems without rgl present; if rgl isn't
2013 Aug 24
2
Correct NAMESPACE approach when writing an S3 method for a generic in another package
Dear List,
In one of my packages I have an S3 method for the plot3d generic
function from package rgl. I am trying to streamline my Depends
entries but don't know how to have
plot3d(foo)
in the examples section for the plot3d method in my package, without
rgl being in Depends.
Note that I importFrom(rgl, plotd3d) and register my S3 method via
S3Method() in the NAMESPACE.
If rgl is not in
2012 Nov 05
2
exporting 3D dynamic graph
Hi the list,
Using misc3d, we can export 3d dynamic graph in pdf format.
Is it also possible to export these graph into a format that we can publish on the web?
Christophe
--
Christophe Genolini
Maître de conférences en bio-statistique
Vice président Communication interne et animation du campus
Université Paris Ouest Nanterre La Défense
[[alternative HTML version deleted]]
2016 Jan 31
0
Best way for rgl's .onLoad to fail?
I think the 2nd option will be more palatable to inexperienced users, but both do state the important detail. Bryan
> On Jan 30, 2016, at 4:11 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
>
> On OSX and Linux, the rgl package currently requires X11 libs to be available for linking. Recent versions of OSX don't include them by default, so I'd like rgl to fail
2016 Feb 01
0
Best way for rgl's .onLoad to fail?
On 01/02/2016 4:26 AM, Martin Maechler wrote:
>>>>>> "BH" == Bryan Hanson <hanson at depauw.edu>
>>>>>> on Sun, 31 Jan 2016 09:50:46 -0500 writes:
>
> BH> I think the 2nd option will be more palatable to
> BH> inexperienced users, but both do state the important
> BH> detail. Bryan
>
> >>