-
Notifications
You must be signed in to change notification settings - Fork 0
Fix adapter finding #30
Comments
|
|
The matter is that the source_uri is not always a folder. It can be a file Just proceed with what is workable and we decide what to do after my
|
I have a full schedule this evening, so I can't help; you'll have to do what you can to get it ready for the morning. |
The result of the find.package() can be passed to the .jnew call inside the getEngine function to replace the literal strings there |
So in looking at this again, I also get a complaint about
Not only is there no var3 in my environment, such a side-effect is not what I would expect; I think Any idea what's going on here @javadch? |
Oddly, I get that error whether or not I fix what's being passed to |
It is indeed not an error. Its a compilation switch i have to set at the query translation time to suppress the message. |
Let me check it tmrw. Curently waiting for my flight from LAX to Detroit |
Okay so that makes sense, but all statements in a process are always run together, correct? Seems like a better behavior would be to return a |
The b and b1 is weird i have to debug the grammar to see what is going on. |
It takes time to convert all, while in many cases not all of them are needed e.g., intermediate results. I suggest to have a function to return only the names of the variables of a process, so that users know what is available to ask for its actual data. |
Is it not possible to specify in the grammar that not all statements need to return their results when the process is finished? It seems odd to make users go through an extra step of fetching their results from Java. |
lets fix the blocking issues first, then we can come back to discuss these enhancements. The R's DBI works in the same way, but for single statements. set connection, impose query, execute query and fetch result. |
I made some minor changes in the test.R and also in the getEngine function. The jar changes are just to be sure everything is up to date (the changes may not be relevant to this issue). Using this version the test demo runs for me. if it still fails on your machine, please:
|
I installed Ubuntu 14.0.4 LTS, OpenJDK 8 (both JRE and JDK), R 3.2.2 RStudio 0.99.484 and the needed packages (rJava, roxygen2, devtools, etc). Then cloned the repo, checked out the java-check branch and tested the following: - build and load: OK - CHECK: OK - Examples run: OK - demo(package = "RQt", RQtTest2): OK
Tested and passed on both Windows and Linux. Used the latest develop version as of today Sept. 15 |
To reproduce, checkout the
new-demos
branch, build the package, then runYou'll have to hit enter to start it; it should run "successfully", but the
rqt.runProcess
call does not return what we want:That's definitely the wrong path to be looking in, but I have no idea how we could tell Java where to look. You can see in
demo/test.R
I usefind.package()
, but I don't know how to pass that to Java.This wasn't caught by R CMD check because that outcome looks successful to R since no error was raised.
I don't know how to fix this, but this is pretty serious. I suspect the way we're using
config
is not ideal, but I don't know where else to put that stuff. Perhaps as a short-term workaround you can edit the appropriate java functions to take in a directory parameter, and then in R we could hardcode those tofind.package("RQt")
inside the R functions?The text was updated successfully, but these errors were encountered: