[R] magick package says format is PNG when we load an SVG.

2019-02-24 Thread Ashim Kapoor
Dear All, Here is a MWE : library(magick) tiger <- image_read_svg('http://jeroen.github.io/images/tiger.svg', width = 400) print(tiger) ## format width height colorspace matte filesize density ## 1PNG 400400 sRGB TRUE0 72x72 Why does the format say PNG ? Should it n

[R] A new version (1.2.0) of the “spm” package for spatial predictive modelling is now on CRAN. [SEC=UNCLASSIFIED]

2019-02-24 Thread Li Jin
Dear R users, A new version (1.2.0) of the “spm” package for spatial predictive modelling is now available on CRAN. The introductory vignette is available here: https://cran.rstudio.com/web/packages/spm/vignettes/spm.html In this version, two additional functions, avi and rvi have been a

Re: [R] Newton-RaphsonMethod

2019-02-24 Thread Daniel Nordlund
On 2/24/2019 5:25 AM, malika yassa via R-help wrote: HELLOplease I want to approximate the solution of the equation f(x)=x*(x-2)+log(x)=0 for that i did this program f <- function(x){x*(x-2)+log(x)} x <- c(1 : 2) f(x) h <- 1e-7 df.dx <- function(x){(f(x + h) - f(x)) / h} df.dx(3/2);df.dx(2)  n

[R] Which dependency list to build first?

2019-02-24 Thread Rich Shepard
I apologize for the ambiguous subject; I could not think of a more accurate one. Updating packages reported that 'later' did not build, but I did not see which dependency needs updating. Looking at the CRAN page for this package I see potentials and would like advice on which are the ones needing

Re: [R] Newton-RaphsonMethod

2019-02-24 Thread Bert Gunter
This list has a no homework policy. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Feb 24, 2019 at 9:22 AM malika yassa via R-help < r-help@r-project.org>

[R] Newton-RaphsonMethod

2019-02-24 Thread malika yassa via R-help
HELLOplease I want to approximate the solution of the equation f(x)=x*(x-2)+log(x)=0 for that i did this program f <- function(x){x*(x-2)+log(x)} x <- c(1 : 2) f(x) h <- 1e-7 df.dx <- function(x){(f(x + h) - f(x)) / h} df.dx(3/2);df.dx(2)  newton <- function(f, tol = 1e-7, x0 = 3/2, N = 100){  h