@BeforeClass public static void setUp() { providerService = new JRIEngineProviderService(); providerService.setBlockFunction( "source(\"/Users/jfcorugedo/Documents/git/kmd/kmd-math/blockFunction.R\")"); providerService.setUpR(); }
@Test @Ignore public void testBlockDiscreteFunction() { REXP result = providerService.blockDiscreteFunction( new REXPInteger(generateIds(200)), new REXPString(generateRandomCities(200))); if (LOGGER.isInfoEnabled()) { LOGGER.info(blockResultToString(result)); } }
@Test public void testBlockFunction() throws Exception { for (int i = 0; i < 100; i++) { REXP result = providerService.blockFunction( new REXPInteger(generateIds(200)), new REXPDouble(TEST_BIG_POPULATION)); if (LOGGER.isInfoEnabled()) { LOGGER.info(blockResultToString(result)); } } }