A very enthusiastic GSoC student named Wojciech Gryc is working hard at the R Integration task. He’s created a wiki page for this, where he solicits feedback, suggestions, comments etc.
He has also started another nice wiki page on hacking Calc’s core to add built-in cell functions. Go check it out!
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /homepages/7/d105059906/htdocs/wp.kohei.us/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /homepages/7/d105059906/htdocs/wp.kohei.us/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
It turns out that pretending to write an export filter, at least adding a new entry to the Export dialog, is quite easy. In fact, you don’t even have to write a single line of code. Here is what to do.
Suppose you do your own build, and you have installed the OO.o that you have built. Now, go back to your build tree, and change directory into the following location
filter/source/config/fragments
and add the following two new files relative to this location:
Once these new files are in place, add these files to fcfg_calc.mk so that the build process can find them. To add, open fcfg_calc.mk and add Kohei_SDF to the end of T4_CALC, calc_Kohei_SDF_Filter to F4_CALC, and calc_Kohei_SDF_Filter_ui to F4_UI_CALC. Save the file and rebuild the module. This should rebuild the following configuration files (build done on Linux):
One note: the language pack zip package should contain the file named Filter.xcu with the new UI string you just put in. If you don’t see that, remove the whole unxlngi6.pro directory and build the module again.
Now it’s time to update your installation. You need to update the following files:
Ok so far? There is one more thing you need to do to complete the process. Since these configuration files are cached, in order for the updated configuration files to take effect, the cached data must be removed. The cached data is in the user configuration directory, so you need to locate and delete the following directory:
rm -rf <user_config_dir>/user/registry/cache
That’s it! Now, fire up Calc and launch the Export dialog. You see the new file format entry you just put in. :-)
Just try not to export your file using this new filter for real, because that will utterly fail. ;-)