R package to connect to bq? - r

I'm curious if anyone knows of an R package capable of connecting to bq.
I haven't found anything in CRAN, and the one in {p} seems to be very much outdated.

As Daroczig says, https://github.com/hadley/bigrquery is the answer.
I didn't know about the more general https://github.com/hadley/dplyr, looks good!

Related

Advice needed for R package security in production

I am working as a Data Scientist for a small start up and we are using R as part of our platform for analysis, dashboards etc. Therefore, I need to ensure that we maintain security with each package we use and load.
I have looked around and done extensive searching and have come across the following links:
This is the official R Studio Blog Security update page.
This blog post shows how you can implement rJava to help with those packages that require it, though it does state that '...the integrity & safety of the R package ecosystem is still in the “trust me, everything’s 👍!!”'
This post gives some good advice for package security, but basically boils down to: if you get it from CRAN or another trusted source then it should be ok.
The CVE site lists vulnerabilities, though the last one was back in 2017.
However, all the above links essentially say the same thing, which is "if its from CRAN (or similar), then it is probably fine". Now this might indeed be the case, but I was hoping for something a bit more rigorous. Has anyone else come across this issue with production R deployment?
If possible, if someone could direct to where I might be able to find out more information on checking for security updates, breaches and changes for R packages, or how to go about testing the security myself, I would be very grateful.
Thanks!

CVS Plugin for Atom

Is there any CVS plugin for Atom? I've searched for one through the application, on google, etc. and it just seems to have no support for versioning with CVS. Can someone confirm this?
Since I didn't get any responses for this over here, I posted the same question on Atom's own forum and it seems like there are no CVS-supporting packages. One possible way is to use a terminal package to run CVS commands as described here.
https://discuss.atom.io/t/cvs-plugin-for-atom/49919
Posting this just so that in case someone else has the same question, at least they know this 1 alternative to a CVS plugin.

Alternatives to the packrat package - package reproducibility

Packrat is a neat tool in theory, but for years it has been plagued by huge hang times upon starting RStudio, and the devs don't seem to be able to fix the issue. It's become unsustainable in my project. Does anybody have any good alternatives to packrat? Google searches did not turn up anything useful, so any help would be greatly appreciated.
I'll assume you're using Packrat for reproducibility, rather than version control.
Start with the CRAN task view for reproducible research , specifically the section on Package Reproducibility. You'll find it suggests checkpoint, rbundler and packrat.
Another approach is to move from Base R to Microsoft R open. It has reproducibility built in.
Side Note: As an example use case of reproducibility, let's assume you've written some R code with packages. Then you share your research. But the package owner makes a change between the time you did the research and the time someone else is trying to reproduce your research. The change made by the package owner breaks your research. In order for someone to reproduce your research, they need to use your code WITH THE ORIGINAL PACKAGE - not the new package.
{renv} is developed by the RStudio folks and aims to solve at least some of the problems that packrat had: https://blog.rstudio.com/2019/11/06/renv-project-environments-for-r/
"The goal then is for renv to be a robust, stable replacement for the Packrat package, with fewer surprises and better default behaviors."

Issue with Meteor.loginWithGoogle

I am experiencing a strange issue with the Meteor Accounts package. More specifically, it's related to the Meteor.loginWithGoogle method. I have had this method working flawlessly in the past, until I recently upgraded to 0.9.3.1 from 0.8.3 (I think it was 0.8.3 anyways).
Now, All I am seeing is the not very helpful error message "No matching login attempt found". I have tried digging deeper into the issue, but I find that I don't know enough about the internals of the Accounts package to debug this in a meaningful way.
If anybody can offer any input at all, I would greatly appreciate it. My app is set to go live in about a week, and not being able to log in would greatly reduce the usefulness of the app ;-)
As stated in my comment to the issue description, the issue went away when I upgraded to Meteor 0.9.4.

Consume a web service in R

Here's the scenario:
I have JBoss serving a web service with JBossWS providing me with a wsdl. I have connected and used it from both .NET and Java so far (and it has been quite easy once I figured it out). I am now trying to do the same with R.
Is there anything out there considered to be "the right way" for doing this? I am not that familiar with R, and my searches have not turned up much, so I figured I'd ask and maybe spare my head and the wall a bit of damage.
I have had good luck using rJava to recreate in R something that works in Java. I use this method for connecting to Amazon's AWS Java SDK for their API with R. This allows me, for example, to transfer files to/from S3 from R without having to recreate the whole connection/handshake/boogieWoogie from R.
If you wanted to go more "pure R" I think you'll have to use some combination of RCurl and the XML package to grab and parse the wsdl.
There are a number of ways:
You could retain your Java approach and use the rJava package around it
You could use RCurl which is used to power a few higher-level packages (accessing Google APIs, say)
I believe there is an older SSOAP package on Omegahat which may help too.

Resources