[R] Accessing the C++ source associated with the rgl function shade3d

Rasmus Liland jr@| @end|ng |rom po@teo@no
Thu Jul 30 01:27:26 CEST 2020

Dear Byron,

On 2020-07-29 18:04 -0400, Duncan Murdoch wrote:
> The arrow3d function is also a pure R 
> function, but not a generic.  You can 
> see the source by typing "arrow3d".

... but if I type rgl::shade3d, I get

	> rgl::shade3d
	function (x, ...)
	<bytecode: 0x562692966fb8>
	<environment: namespace:rgl>
	> dput(rgl::shade3d)
	function (x, ...)

I've observed this is possible in the 
past, but now I can't remember how ...

On 2020-07-29 15:34 -0700, Jeff Newmiller wrote:
> On July 29, 2020 2:35:33 PM PDT, Byron Dom wrote:
> > I'm not familiar with how GitHub is 
> > organized 
> The official way is to find the CRAN 
> package page and download the tar.gz 
> file and extract the files. Either 
> way, you get the whole package source 
> code this way.

I have a hunch this is the file you're 
looking for 

Remember, dealing with code on github is 
just a small uptick from how Linux was 
developed before, by shipping around 
diffs and tarballs on a mailing list 
much similar to this one, Thorvalds 
merging them into the kernel in the 
authoritarian way.

You can do it!  *cheers*


[1] http://gameoftrees.org/

More information about the R-help mailing list