Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upproblem with .get_curl #26
Comments
|
Please debug locally. There is nothing I can do for you here without a minimally reproducible example as I too have One idea would be to compare what
|
|
Ahh! i think I've found some insight into the issue. The following block works (or should once i solve the CA cert issue):
However, I was taking a shortcut:
In this case, .pkgenv has never been initialized. This explains why the test for Perhaps adding an additional check in
would work? |
|
Fair point. I'll make that change. And/or check if the package was never attached, or change the logic to maybe call '.initialize()` in that case. |
|
what about: pbPost <- function(<snip>){
if (! ("RPushbullet" %in% loadedNamespaces()){
RPushbullet:::.parseResourceFile()
}
...
}strictly speaking, this is unnecessary if the call to pbPost() has an |
|
From the looks that was a dance around sourcing the config file when the package was not attached. Do you feel strongly about removing it? Should not do too much damage. |
|
I have not committed this block of code yet. Thinking about it a bit more, I'm okay if we don't use it and close this issue. As it stands now with #30, a call to |
|
I have that issue with other packages too. Stateful data in a per-package environment requires But then again these are hairsplitting decisions. Let's get the bigger things right first and use the curl package. We can then see what is happening... |
|
I think I now now know what do to (thanks for some hints from an R Core member reviewing a paper draft having similar code). |
updated initialization (closes #26)
when trying to use pbPost() i get the following error:
Error in if (curl == "") stop(paste("No curl binary registered. ", "Install curl, and restart R and reload package")however, curl is installed and running Sys.which("curl") returns
I'm running R 3.2.0 on Redhat.