Currently a product manager / metadata expert at Insee.
Nowadays i mainly produce issues and comments but i sometimes code! π
R API for the Trevas VTL engine :8ball:
License: MIT License
Currently a product manager / metadata expert at Insee.
Nowadays i mainly produce issues and comments but i sometimes code! π
Before pushing to CRAN, i use R-hub as is advised.
When doing so, the tests are in error because the provided JVM is not adapted to the version used to compile classes:
* checking tests ...
Running βtestthat.Rβ
ERROR
Running the tests in βtests/testthat.Rβ failed.
Last 13 lines of output:
ββ 6. Error: Instantiate InMemoryDataset (@test-java_utils.R#2) βββββββββββββββ
java.lang.UnsupportedClassVersionfr/insee/vtl/model/Dataset has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
ββ testthat results βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 6 ]
1. Error: Creating a list of components from a dataframe (@test-dataset.R#3)
2. Error: Can create a list of data from a df (@test-dataset.R#10)
3. Error: Can create a dataset from a dataframe (@test-dataset.R#17)
4. Error: Evaluation is done right (@test-evaluation.R#5)
5. Error: Datasets, drop operation (@test-evaluation.R#11)
6. Error: Instantiate InMemoryDataset (@test-java_utils.R#2)
Error: testthat unit tests failed
Execution halted
This easiest solution would be to recompile the classes with Java 8 (52), see the list of java versions.
Another more complex option would be to see if another runtime can be used with R-hub and CRAN.
We could memoize the call to get_engine
using:
memoise <- function(fun) {
memory <- list()
function(x) {
valueName <- as.character(x)
if (!is.null(memory[[valueName]])) return(memory[[valueName]])
res <- fun(x)
memory[[valueName]] <<- res
res
}
}
fn <- function(n) {
sample(1:n, size = n)
}
Basic installation of the package is not directly working due to rJava way of handling things.
See:
In the following statement:
Line 72 in bd2981a
it is necessary to add escaped double quotes ( \"
) to Hadrien
.
We already transform a dataframe into a dataset (specifically a Trevas InMemoryDataset).
We now need to produce the inverse operation.
Currently, darkr
supports VTL expression in the form of string, eg. derived := initial[ drop age ]
.
It may be cool to have builder functions, for example:
ds2 <- create(derived) %>%
from(initial) %>%
drop(age)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.