Displaying 20 results from an estimated 1000 matches similar to: "httr::content without message"
2018 Jan 02
0
httr::content without message
Ahoy!
That's a message generated by the readr::read_table() function (or it's friends). You can suppress it a number of ways, but this should work as httr::content() will pass through arguments, like col_types = cols(), to the file reader.
junk <- httr::content(r1, col_types = cols())
See more here...
https://blog.rstudio.com/2016/08/05/readr-1-0-0/
2018 Jan 02
1
httr::content without message
Thanks to all that replied. I had just looked through the httr code and sure enough for a .csv mime time it calls readr::read_csv(). The httr::content docs suggest not using automatic parsing in a package, rather to determine mime type and parse yourself and Ben's suggestion also works if I do:
junk <- readr::read_csv(r1$content, col_types = cols())
Perfect. Using httr rather than
2024 Feb 01
1
Need help testing a problem
?s 23:47 de 31/01/2024, Roy Mendelssohn - NOAA Federal via R-help escreveu:
> HI All:
>
> We are trying to figure out a problem that is occurring with a package, and we need a non-NOAA person with a Windows computer with the latest R to test for us what is failing (but works on Macs and Linux from different sites). Part of the problem is there is an Akamai service in between that we
2024 Jan 31
1
Need help testing a problem
HI All:
We are trying to figure out a problem that is occurring with a package, and we need a non-NOAA person with a Windows computer with the latest R to test for us what is failing (but works on Macs and Linux from different sites). Part of the problem is there is an Akamai service in between that we feel may be messing up things. To do this you would need to be willing to:
1. install the
2008 Jun 20
1
World Ocean Database files
Has anyone written a script or function to read data from NODC?s World
Ocean Database files?
(I know there are simple Fortran and C programs to read these files, but
the output is not suitable for easy analysis)
Thanks, Franz
_____________________________________________________
Dr. Franz J. Mueter
School of Fisheries and Ocean Sciences, Juneau Center
University of Alaska Fairbanks
11120
2017 Sep 06
3
withr::set_makevars
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 in my own , so I have a fork of the package rerddap, and I tested goodpractice on that. I get the
2017 Sep 07
0
withr::set_makevars
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:
trace(withr:::set_makevars, quote({ cat(old_path, "\n");
writeLines(paste0(" ",
2012 Jan 13
3
The Future of R | API to Public Databases
Dear R Users -
R is a wonderful software package. CRAN provides a variety of tools to
work on your data. But R is not apt to utilize all the public
databases in an efficient manner.
I observed the most tedious part with R is searching and downloading
the data from public databases and putting it into the right format. I
could not find a package on CRAN which offers exactly this fundamental
2017 Sep 06
1
rgdal error when trying to import raster
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. Clearly the attempt to read a TIFF was an example of the latter. Had you used a different input
2017 Aug 06
1
Nested for loop
Hi Ben,
That's exactly right! Except for each set it's the sample population that
is 400, 800 or 300. I want to take 3 samples, each of 100, where only the
population differs. I can do this separately, but I'm having trouble
putting them all on the same graph.
I'd like to have sample on the x axis (1-300) and estimate on the y axis. I
want to show how population affects the
2017 Dec 16
5
Generating help files for a function
Hello everyone!
I'm in the process of writing a package, and I'm using the lovely "R
Package" book as a guideline.
However, in the midst of my work, I discovered that I had omitted a
function and am now putting in it the package. Not a problem. But the
problem is the help file. What is the best way to generate a help file
"after the fact" like that, please?
Thank
2017 Sep 06
2
rgdal error when trying to import raster
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'
Error in .rasterObjectFromFile(x, band = band, objecttype =
2017 Dec 16
0
Generating help files for a function
Hi,
If you are using roxygen-style function documentation then why not use devtools::document()?
Ben
> On Dec 16, 2017, at 9:00 AM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
>
> Hello everyone!
>
> I'm in the process of writing a package, and I'm using the lovely "R
> Package" book as a guideline.
>
> However, in the midst of my
2018 Jan 17
3
roxygen2 error - x$tag operator is invalid for atomic vectors
Hi,
I am trying to create my first R package.
I will later today put the files on Github.
However I gets this error and I can't find any reason for it:
R> roxygen2::roxygenise()
First time using roxygen2. Upgrading automatically...
Error in x$tag : $ operator is invalid for atomic vectors
R>
Any ideas?
Regards
Martin M. S. Pedersen
[[alternative HTML version deleted]]
2017 Sep 06
0
rgdal error when trying to import raster
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
Cheers,
Ben
> On Sep 6, 2017, at 2:52 PM, john polo <jpolo at mail.usf.edu>
2017 Aug 05
2
Nested for loop
Hi! Thanks for taking the time to read this.
The code below creates a graph that takes 100 samples that are between 5%
and 15% of the population (400).
What I'd like to do, however, is add two other sections to the graph. It
would look something like this:
from 1-100 samples take 100 samples that are between 5% and 15% of the
population (400). From 101-200 take 100 samples that are between
2017 Aug 17
3
really dumb question with building/creating a new package.
Hello.
I am creating a new RcmdrPlugin package. However, I am getting some very
odd messages.
R CMD build RcmdrPlugin.gstats_1.0.0
ERROR
cannot change to directory ?RcmdrPlugin.gstats_1.0.0?
es-macbook-air:~ emhodgess$ R CMD check RcmdrPlugin.gstats_1.0.0
Warning: ?RcmdrPlugin.gstats_1.0.0? is neither a file nor directory,
skipping
es-macbook-air:~ emhodgess$ cd RcmdrPlugin.gstats/
2017 Aug 06
0
Nested for loop
Hi Kirsten,
I can run your example code but I can't quite follow your division of sampling. Can you restate the the task? Below is what I think you are asking for, but I have the feeling I may be off the mark.
Set A: 400 samples, draw 100 in range of 5 to 15
Set B: 800 samples, draw 100 in range of 5 to 15
Set C: 300 samples, draw 100 in range of 5 to 15
Ben
> On Aug 5, 2017, at
2017 Oct 24
5
Problem Subsetting Rows that Have NA's
This has every appearance of being a bug. If it is not a bug, can
someone tell me what I am asking for when I ask for "x[x[,2]==0,]". Thanks.
> #here is the toy dataset
> x <- rbind(c(1,1),c(2,2),c(3,3),c(4,0),c(5,0),c(6,NA),
+ c(7,NA),c(8,NA),c(9,NA),c(10,NA)
+ )
> x
[,1] [,2]
[1,] 1 1
[2,] 2 2
[3,] 3 3
[4,] 4 0
[5,] 5 0
2016 Apr 01
1
Using R for cURL commands
Hello,
I'm looking for a way in which R can make my live easier.
Currently i'm using R convert data from a dataframe to json's and then sending these json's to a rest api using a curl command in the terminal (i'm on a mac).
I've been looking for a way to use R for sending data from R to the rest api. My primairy focus was on using R for executing the curl command,