Comments (16)
- when it worked on other branches, how is it possible to not work here?
- On my machine:
- the extdata should have a tailing forward slash -> extdata/
- it complained about using 'b' in the BIND statement in the test.R. I changed it to b2 and it works!
- As a clue: in the rqt.getEngine() code, there is a call to this: getEngineReturnValue <- .jnew("xqt/api/LanguageServicePoint", "RQt, RQt/inst, inst")
which means, the LanguageServicePoint function accepts the candidate locations for the config file. with these feature you have thee options,- make a string containing "RQt, RQt/inst, inst" + find.package("RQt") and pass it to the aboved mentioned function.
- create a copy of rqt.getEngine(), names it like rqt.getEngine2(path) accepts the path you want, and pass it to the .jenw(.. instead of "RQt, RQt/inst, inst"
- pass find.package("RQt") result to the ,.jnew "RQt, RQt/inst, inst", without creating another function
By the way, I do not think that the problem is with the path,...
from rquis.
- RQt has never worked for me on any branch, so I don't know; we just got the Java issues worked out on Monday, after all.
- On my machine,
- having the extra
""
infile.path
is to ensuredir
ends with a slash; is that not the case on your machine (try running just that line to see the output)? Really, XQt should not be so picky, and assume thatSOURCE_URI
is a directory regardless of trailing slash. - I get no complaint about
b
, unless it's somehow being masked. Why would that matter, isb
a reserved keyword?
- having the extra
- Those are definitely the wrong things to be passing to getEngine as
inst/
does not exist, andRQt
cannot be assumed to be in the current directory. I also think getEngine should be validating this input rather than waiting for a run-time XQt error.
I say the problem is with the path because it's clearly looking in the wrong path; there is no expectation that/home/cyochum/config/
exists.
(iii) seems like the only workable option to me, but I have no time to implement and test it.
from rquis.
The matter is that the source_uri is not always a folder. It can be a file
or a url too. I would go to make it smarter by the way.
Just proceed with what is workable and we decide what to do after my
presentation.
On Aug 27, 2015 10:41 AM, "Clayton" [email protected] wrote:
- RQt has never worked for me on any branch, so I don't know; we just
got the Java issues worked out on Monday, after all.- On my machine, having the extra "" in file.path is to ensure dir
ends with a slash; is that not the case on your machine (try running just
that line to see the output)? Really, XQt should not be so picky, and
assume that SOURCE_URI is a directory regardless of trailing slash.- Those are definitely the wrong things to be passing to getEngine as
inst/ does not exist, and RQt cannot be assumed to be in the current
directory. I also think getEngine should be validating this input rather
than waiting for a run-time XQt error. I say the problem is with the path
because it's clearly looking in the wrong path; there is no expectation
that /home/cyochum/config/ exists. (iii) seems like the only workable
option to me, but I have no time to implement and test it.—
Reply to this email directly or view it on GitHub
#30 (comment).
from rquis.
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.
from rquis.
The result of the find.package() can be passed to the .jnew call inside the getEngine function to replace the literal strings there
from rquis.
So in looking at this again, I also get a complaint about b
; changing to b1
fixes that. Now I get a new error:
> rqt.runProcess(engine)
Note: /Stmt_1_Reader.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[1] "**************************************************************************************\n****************************** Statement Execution Results ********************************\n**************************************************************************************\nStatement 1 was executed. Its result is in the variable: 'var3' and contains 5 records.\n"
Not only is there no var3 in my environment, such a side-effect is not what I would expect; I think rqt.runProcess
should return the result of running the process.
Any idea what's going on here @javadch?
from rquis.
Oddly, I get that error whether or not I fix what's being passed to .jnew
inside of rqt.getEngine
, which was not the case last week. It's like that path doesn't matter anymore? Not sure how it's finding the adapter it couldn't find before.
from rquis.
It is indeed not an error. Its a compilation switch i have to set at the query translation time to suppress the message.
Results are kept in variables because processes are allowed to have multiple statements.
from rquis.
Let me check it tmrw. Curently waiting for my flight from LAX to Detroit
from rquis.
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 list()
of the results if there's more than one.
from rquis.
The b and b1 is weird i have to debug the grammar to see what is going on.
from rquis.
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.
from rquis.
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.
from rquis.
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.
from rquis.
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:
- delete the log folder
- load and built the package
- run the demo
- send me the log file
- send me the location of the installed package
from rquis.
Tested and passed on both Windows and Linux. Used the latest develop version as of today Sept. 15
from rquis.
Related Issues (20)
- Non-portable file name HOT 1
- File not allowed: FSO2014H.csv.hdr HOT 3
- Create a guide for developers/contributors
- Flesh out the README HOT 1
- Move raw example data into inst/extdata HOT 1
- Sort out issues with config/ directory HOT 9
- Fix LaTeX issue in documentation HOT 7
- Shorten some lines in examples for rqt.addScript HOT 3
- Java Home can not be manually set during package CHECK HOT 15
- Fix missing data in ex1.xqt HOT 2
- Convert `Examples` to demos or vignettes HOT 1
- Improve function documentation
- Improve package Title/Description
- Include Java source
- Do something with rqt.getPlot HOT 3
- Check Java configuration when loading package HOT 3
- Use a better naming scheme HOT 1
- Integrate with TravisCI
- RQtTest1 example fails with a `java.lang.NullPointerException` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rquis.