Re: [R] withr::set_makevars

2017-09-06 Thread Roy Mendelssohn - NOAA Federal
Perfect, thank you very much for the tip. -Roy > On Sep 6, 2017, at 5:26 PM, William Dunlap wrote: > > withr:::set_makevars() can give that error if the makefile named by the > 'old_path' argument (default "~/.R/Makevars) contains more than one > definition of a variable

Re: [R] withr::set_makevars

2017-09-06 Thread William Dunlap via R-help
withr:::set_makevars() can give that error if the makefile named by the 'old_path' argument (default "~/.R/Makevars) contains more than one definition of a variable of the form 'name=value'. You can see what file it is reading and its contents by using the trace() function:

Re: [R] rgdal error when trying to import raster

2017-09-06 Thread Ben Tupper
Ah, I didn't read the entire message. Sorry about that! > On Sep 6, 2017, at 7:20 PM, Jeff Newmiller wrote: > > Indeed, Ben, but the question was something more like it is not a Dependency, > just Suggested, so why the error... > > John: > > If you read the

Re: [R] rgdal error when trying to import raster

2017-09-06 Thread Jeff Newmiller
Indeed, Ben, but the question was something more like it is not a Dependency, just Suggested, so why the error... John: If you read the Introduction to the 'raster' package vignette, it indicates that some input formats are supported within the raster package and some rely on other packages.

[R] withr::set_makevars

2017-09-06 Thread Roy Mendelssohn - NOAA Federal
Hi All; This problem has come about from trying to learn some of the review practices recommend by rOpensci. One of them is to use the package goodpractice. After installing goodpractice, it kept failing on my own packages which are under development, and I was concerned something was funny

Re: [R] rgdal error when trying to import raster

2017-09-06 Thread Ben Tupper
Hi, The message "there is no package called 'rgdal'" means that you don't have rgdal installed. https://cran.r-project.org/web/packages/rgdal/index.html Also, you will get very good patial-centric help if you subscribed to r-sig-geo here https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R] rgdal error when trying to import raster

2017-09-06 Thread john polo
Dear useRs, I am trying to import a raster with the line: nlcd <- raster("/home/jpolo/NRI/nlcd_nri5000.tif") And I keep getting an error like this: "Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :   there is no package called 'rgdal'

[R] Using quantmod to obtain current Dow Jones index

2017-09-06 Thread Dennis Fisher
R 3.4.1 OS X Colleagues, I am just learning to use the quantmod package and I have encountered something that I don’t understand. This works: getSymbols("^DJI") This does not work: getQuote("^DJI”) It returns only NAs: Trade Time Last Change % Change Open High Low

Re: [R-es] gráfico

2017-09-06 Thread jbetancourt
eSTIMADO FUNCIONÓ MUY BIEN plot(z, col = as.numeric(pred.class)) SALUDOS Jose, > > Usa > > plot(z, col = as.numeric(pred.class)) > > Saludos, > Jorge.- > > > 2017-09-03 8:29 GMT-05:00 : > >> Estimados >> Quisiéramos que la salida final plot (z) fuera de tres colores,

[R] Help

2017-09-06 Thread manoj oak via R-help
Hello, I want to analysis of NIR spectra and develop prediction models using pls, mpls, pcr statics.  I used inspectr package, processed and modified the spectra, but how i do the prediction using packages pls and caret do not know. If some one is ready to do the help I will appreciate it. 

Re: [R] Interesting behavior of lm() with small, problematic data sets

2017-09-06 Thread JRG
Indeed (version-specific). With R 3.4.1 on linux, I get coefficients and residuals that are numerically exact, F-statistic = NaN, p-value = NA, R-squared = NaN, etc. All of which is what ought to happen, given that the response variable (y) is not actually variable. ---JRG John R. Gleason On

Re: [R] Interesting behavior of lm() with small, problematic data sets

2017-09-06 Thread S Ellison
> I think what you're seeing is > https://en.wikipedia.org/wiki/Loss_of_significance. Almost. All the results in the OP's summary are reflections of finite precision in the analytically exact solution, leading to residuals smaller than the double precision limit. The summary is correctly

[R] post_processor in rmarkdown not working

2017-09-06 Thread Thierry Onkelinx
Dear all, I'm trying to write a post_processor() for a custom rmarkdown format. The goal of the post_processor() is to modify the latex file before it is compiled. For some reason the post_processor() is not run. The post_processor() does work when I run it manually on the tex file. Any