# READ ODS file

**URL:** <https://forum.knime.com/t/read-ods-file/37290>\
**Category:** KNIME Analytics Platform\
**Created:** [November 11, 2021, 8:47pm UTC](https://forum.knime.com/t/read-ods-file/37290 "2021-11-11T20:47:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![89trunks](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/8/ea666f/32.png) [@89trunks](https://forum.knime.com/u/89trunks)\
**Post date:** [November 11, 2021, 8:47pm UTC](https://forum.knime.com/t/read-ods-file/37290/1 "2021-11-11T20:47:20Z")

</div>

I was trying to read ODS file using R and Tikka Parser but I got stuck.

Can someone help me ?

The orginal file looks like this:

![image](https://forum-cdn.knime.com/uploads/default/original/3X/a/6/a697732cf1697354abe026b73297a88b9e452478.png)  
Processing: CARZZ.ods…

I atached workflow:

[KNIME\_read\_ODS.knwf](https://forum.knime.com/uploads/short-url/h91ddiOcq8ckOfRa7O41uSVsIlH.knwf) (71.5 KB)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/a/3/a35b84fdb4bf391fb99c86bcac2e0c143b230853.png)

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [November 11, 2021, 8:56pm UTC](https://forum.knime.com/t/read-ods-file/37290/2 "2021-11-11T20:56:06Z")

</div>

@89trunks you might want to take a look at these examples

> **[Import ODS (Libre Office) calc Sheets – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_r_ods_calc_read~tdBlAulierhMNiyZ)**
>
> Import ODS (Libre Office) calc Sheets

> **[Export ODS (Libre Office) calc Sheets – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_r_ods_calc_write~VZhPp4XF4h7HZV6K)**
>
> Export ODS (Libre Office) calc Sheets

---

<div class="post-metadata">

**Author:** ![89trunks](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/8/ea666f/32.png) [@89trunks](https://forum.knime.com/u/89trunks)\
**Post date:** [November 11, 2021, 9:12pm UTC](https://forum.knime.com/t/read-ods-file/37290/3 "2021-11-11T21:12:56Z")

</div>

I was traying follwing thoses two workflows but without results.  
I stucked at second R Snipped - “there is no package hms”

I tried installed it but without success

![image](https://forum-cdn.knime.com/uploads/default/original/3X/1/e/1e288b6de7203418e541cc0841cf3a3ab9b1689a.png)

> install.packages(“hms”)  
> — Please select a CRAN mirror for use in this session —

There are binary versions available but the source versions are later:  
binary source needs\_compilation  
rlang 0.3.4 0.4.12 TRUE  
ellipsis 0.1.0 0.3.2 TRUE  
vctrs 0.1.0 0.3.8 TRUE  
hms 0.4.2 1.1.1 FALSE

Binaries will be installed  
package ‘rlang’ successfully unpacked and MD5 sums checked  
package ‘ellipsis’ successfully unpacked and MD5 sums checked  
package ‘vctrs’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in  
C:\Users\Trunks\AppData\Local\Temp\knime-r-tmp94359\Rtmpuqr3Hg\downloaded\_packages  
also installing the dependencies ‘rlang’, ‘ellipsis’, ‘lifecycle’, ‘vctrs’

trying URL ‘[https://cloud.r-project.org/bin/windows/contrib/3.4/rlang\_0.3.4.zip](https://cloud.r-project.org/bin/windows/contrib/3.4/rlang_0.3.4.zip)’  
Content type ‘application/zip’ length 1080437 bytes (1.0 MB)  
downloaded 1.0 MB

trying URL ‘[https://cloud.r-project.org/bin/windows/contrib/3.4/ellipsis\_0.1.0.zip](https://cloud.r-project.org/bin/windows/contrib/3.4/ellipsis_0.1.0.zip)’  
Content type ‘application/zip’ length 30847 bytes (30 KB)  
downloaded 30 KB

trying URL ‘[https://cloud.r-project.org/bin/windows/contrib/3.4/vctrs\_0.1.0.zip](https://cloud.r-project.org/bin/windows/contrib/3.4/vctrs_0.1.0.zip)’  
Content type ‘application/zip’ length 499748 bytes (488 KB)  
downloaded 488 KB

installing the source packages ‘lifecycle’, ‘hms’

trying URL ‘[https://cloud.r-project.org/src/contrib/lifecycle\_1.0.1.tar.gz](https://cloud.r-project.org/src/contrib/lifecycle_1.0.1.tar.gz)’  
Content type ‘application/x-gzip’ length 99716 bytes (97 KB)  
downloaded 97 KB

trying URL ‘[https://cloud.r-project.org/src/contrib/hms\_1.1.1.tar.gz](https://cloud.r-project.org/src/contrib/hms_1.1.1.tar.gz)’  
Content type ‘application/x-gzip’ length 43117 bytes (42 KB)  
downloaded 42 KB

The downloaded source packages are in  
‘C:\Users\Trunks\AppData\Local\Temp\knime-r-tmp94359\Rtmpuqr3Hg\downloaded\_packages’

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [November 11, 2021, 9:18pm UTC](https://forum.knime.com/t/read-ods-file/37290/4 "2021-11-11T21:18:53Z")

</div>

You might want to install RStudio alongside R and try to install from there instead of from knime. Make sure you have the right path configured in knime.

[https://docs.knime.com/latest/r\_installation\_guide/index.html#\_introduction](https://docs.knime.com/latest/r_installation_guide/index.html#_introduction)

> **[A meta collection and article about R and KNIME – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/latest/_r_installation_on_knime_collection~tj5tS_6gYvqOSPlk#externalresources)**
>
> A meta collection and article about R and KNIME R gives you the power to do a lot of great things combined with KNIME but to get R and KNIME together up and ru…

You also could check your R version and packages

> **[check version of R packages in KNIME – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_r_check_version_of_package~annQfxz-Mrtn2BNm)**
>
> demonstrates how to check the versions of every R package. And specifically check for the version of the RServe package. With the help of the package sessionin…

The. The question is which operating system you have.

---

<div class="post-metadata">

**Author:** ![89trunks](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/8/ea666f/32.png) [@89trunks](https://forum.knime.com/u/89trunks)\
**Post date:** [November 12, 2021, 8:46pm UTC](https://forum.knime.com/t/read-ods-file/37290/5 "2021-11-12T20:46:26Z")

</div>

#mlauber71

Thanks - installing RStudio alongside R and then installing packages from there - it helps

I was wondering how can it be done using Tika Parser. I mean how can I turn the content cell to columns just as orginal table ?

---

<div class="post-metadata">

**Author:** ![89trunks](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/8/ea666f/32.png) [@89trunks](https://forum.knime.com/u/89trunks)\
**Post date:** [November 12, 2021, 8:47pm UTC](https://forum.knime.com/t/read-ods-file/37290/6 "2021-11-12T20:47:33Z")

</div>

@mlauber71 - Thank you 🙂

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [November 13, 2021, 2:14pm UTC](https://forum.knime.com/t/read-ods-file/37290/7 "2021-11-13T14:14:04Z")

</div>

> [@89trunks](#):
>
> I was wondering how can it be done using Tika Parser. I mean how can I turn the content cell to columns just as orginal table ?

@89trunks I was wondering the same thing (just seen _mentioning_ of Tika but never saw a working example though) and tried a few things. You actually get the data out from the ODS file but they are all in one column. I was initially able to transpose and convert a small example but a larger example failed and it also failed to preserve date and time fields.

I expanded my [initial example](https://kni.me/w/tdBlAulierhMNiyZ) to also export to several formats from R directly that would be better suited to preserve data and time formats:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/5/f/5fea188facce3e51ee649d189dfc7c2df05b919f.png)

* * *

Edit: Read ODS with Phyton [https://hub.knime.com/s/iU-3F7zz-3DhDKp4](https://hub.knime.com/s/iU-3F7zz-3DhDKp4)

---

<div class="post-metadata">

**Author:** ![89trunks](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/8/ea666f/32.png) [@89trunks](https://forum.knime.com/u/89trunks)\
**Post date:** [November 14, 2021, 3:59pm UTC](https://forum.knime.com/t/read-ods-file/37290/8 "2021-11-14T15:59:08Z")

</div>

@mlauber71 Thanks a lot 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [November 21, 2021, 3:59pm UTC](https://forum.knime.com/t/read-ods-file/37290/9 "2021-11-21T15:59:14Z")

</div>

Closed on November 21, 2021, 3:59pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
