tomwenseleers / export

R package for streamlined export of graphs and data tables.
192 stars 35 forks source link

Error when trying to update #6

Closed Mukei closed 7 years ago

Mukei commented 7 years ago

Hi, I get the below error when trying to update the package with devtools::install_github('tomwenseleers/export',local = F).

* installing *source* package ‘export’ ...
** R
** data
** inst
** preparing package for lazy loading
Warning: replacing previous import ‘ReporteRs::renderFlexTable’ by ‘rtable::renderFlexTable’ when loading ‘export’
Error : .onLoad failed in loadNamespace() for 'rgl', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so':
  dlopen(/Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
  Referenced from: /Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so
  Reason: image not found
ERROR: lazy loading failed for package ‘export’
* removing ‘/Users/user.name/Library/R/3.3/library/export’
* restoring previous ‘/Users/user.name/Library/R/3.3/library/export’
Error: Command failed (1)
tomwenseleers commented 7 years ago

Hi Thomas,

I am also attaching the .ZIP file of the package - does that install OK by any chance: https://www.dropbox.com/s/c905akeocvc0l1y/export_0.2.1.zip?dl=1

Sounds like some problem that you have getting the rgl package installed, not sure where that issue is coming from...

cheers,

Tom


From: Thomas Telandro notifications@github.com Sent: 02 December 2016 01:07 To: tomwenseleers/export Subject: [tomwenseleers/export] Error when trying to update (#6)

Hi, I get the below error when trying to update the package with devtools::install_github('tomwenseleers/export',local = F).

`* installing source package ‘export’ ... R data inst preparing package for lazy loading Warning: replacing previous import ‘ReporteRs::renderFlexTable’ by ‘rtable::renderFlexTable’ when loading ‘export’ Error : .onLoad failed in loadNamespace() for 'rgl', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so': dlopen(/Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib Referenced from: /Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so Reason: image not found ERROR: lazy loading failed for package ‘export’

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/tomwenseleers/export/issues/6, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALgSvv74gnphCZpuyoESo96lpH0kRbbdks5rD2E2gaJpZM4LCC5K.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tomwenseleers/export","title":"tomwenseleers/export","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/tomwenseleers/export"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Error when trying to update (#6)"}],"action":{"name":"View Issue","url":"https://github.com/tomwenseleers/export/issues/6"}}}

Mukei commented 7 years ago

Hi Tom,

Thank you. I could install the package without trouble, but now I am getting various error

graph2ppt(file = paste0(today()," - filename.pptx"), aspectr = 1.7, fontname_sans = "Segoe UI", append = TRUE)
Error: lazy-load database '/Users/user.name/Library/R/3.3/library/export/R/export.rdb' is corrupt
In addition: Warning message:
internal error -3 in R_decompress1 
graph2ppt(file = paste0(today()," - filename.pptx"), aspectr = 1.7, append = TRUE)
Error: lazy-load database '/Users/user.name/Library/R/3.3/library/export/R/export.rdb' is corrupt
In addition: Warning messages:
1: restarting interrupted promise evaluation 
2: internal error -3 in R_decompress1 

Also, while I notice the issue with rgl, I have no issue with the below: install.packages("rgl")

Thanks, Thomas

Mukei commented 7 years ago

After restarting my session and reloading the package I got the following error

Error : .onLoad failed in loadNamespace() for 'rgl', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so':
  dlopen(/Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
  Referenced from: /Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so
  Reason: image not found
In addition: Warning message:
replacing previous import ‘ReporteRs::renderFlexTable’ by ‘rtable::renderFlexTable’ when loading ‘export’ 
Error: package or namespace load failed for ‘export’
tomwenseleers commented 7 years ago

Hi Thomas,

It sounds like you are having problems with the rgl library...

Can you install the rgl library OK, and does library(rgl) give you any errors then?

cheers,

Tom


From: Thomas Telandro notifications@github.com Sent: 03 December 2016 15:49 To: tomwenseleers/export Cc: Tom Wenseleers; Comment Subject: Re: [tomwenseleers/export] Error when trying to update (#6)

After restarting my session and reloading the package I got the following error

Error : .onLoad failed in loadNamespace() for 'rgl', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Users/thomas.telandro/Library/R/3.3/library/rgl/libs/rgl.so': dlopen(/Users/thomas.telandro/Library/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib Referenced from: /Users/thomas.telandro/Library/R/3.3/library/rgl/libs/rgl.so Reason: image not found In addition: Warning message: replacing previous import 'ReporteRs::renderFlexTable' by 'rtable::renderFlexTable' when loading 'export' Error: package or namespace load failed for 'export'

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/tomwenseleers/export/issues/6#issuecomment-264643538, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALgSvmgnP6V1TmHbmyL_A_8vBWBN1Fudks5rEYF0gaJpZM4LCC5K.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tomwenseleers/export","title":"tomwenseleers/export","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/tomwenseleers/export"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Mukei in #6: After restarting my session and reloading the package I got the following error\r\n\r\nError : .onLoad failed in loadNamespace() for 'rgl', details:\r\n call: dyn.load(file, DLLpath = DLLpath, ...)\r\n error: unable to load shared object '/Users/thomas.telandro/Library/R/3.3/library/rgl/libs/rgl.so':\r\n dlopen(/Users/thomas.telandro/Library/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib\r\n Referenced from: /Users/thomas.telandro/Library/R/3.3/library/rgl/libs/rgl.so\r\n Reason: image not found\r\nIn addition: Warning message:\r\nreplacing previous import 'ReporteRs::renderFlexTable' by 'rtable::renderFlexTable' when loading 'export' \r\nError: package or namespace load failed for 'export'\r\n"}],"action":{"name":"View Issue","url":"https://github.com/tomwenseleers/export/issues/6#issuecomment-264643538"}}}

Mukei commented 7 years ago

Hi Tom,

I can install the library without trouble but when I try loading it I get:

Error : .onLoad failed in loadNamespace() for 'rgl', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Users/user.nameLibrary/R/3.3/library/rgl/libs/rgl.so':
  dlopen(/Users/user.nameLibrary/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
  Referenced from: /Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so
  Reason: image not found
Error: package or namespace load failed for ‘rgl’

I found I might just have to install Quartz: http://stackoverflow.com/questions/33634871/installing-rgl-package-in-r-mac-osx-el-captian-fixed

I am trying the above and will update after that.

tomwenseleers commented 7 years ago

Hi Thomas,

This sounds more like something that should be addressed by the rgl package maintainers...

Are you working under Linux?

If so here is a thread that might be helpful:

https://github.com/bioconda/bioconda-recipes/issues/489

cheers,

Tom

From: Thomas Telandro notifications@github.com

Sent: 04 December 2016 13:23 To: tomwenseleers/export Cc: Tom Wenseleers; Comment Subject: Re: [tomwenseleers/export] Error when trying to update (#6)

Hi Tom,

I can install the library without trouble but when I try loading it I get:

Error : .onLoad failed in loadNamespace() for 'rgl', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Users/user.nameLibrary/R/3.3/library/rgl/libs/rgl.so': dlopen(/Users/user.nameLibrary/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib Referenced from: /Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so Reason: image not found Error: package or namespace load failed for 'rgl'

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/tomwenseleers/export/issues/6#issuecomment-264700843, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALgSvsj6isZBogfBp79wBNl1_KgzKRg_ks5rErC9gaJpZM4LCC5K.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tomwenseleers/export","title":"tomwenseleers/export","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/tomwenseleers/export"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Mukei in #6: Hi Tom,\r\n\r\nI can install the library without trouble but when I try loading it I get:\r\n\r\nError : .onLoad failed in loadNamespace() for 'rgl', details:\r\n call: dyn.load(file, DLLpath = DLLpath, ...)\r\n error: unable to load shared object '/Users/user.nameLibrary/R/3.3/library/rgl/libs/rgl.so':\r\n dlopen(/Users/user.nameLibrary/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib\r\n Referenced from: /Users/user.name/Library/R/3.3/library/rgl/libs/rgl.so\r\n Reason: image not found\r\nError: package or namespace load failed for 'rgl'\r\n"}],"action":{"name":"View Issue","url":"https://github.com/tomwenseleers/export/issues/6#issuecomment-264700843"}}}

Mukei commented 7 years ago

Tom, I am on OSX 10.11.6. After install Quartz, all is working back again. Only new (small) issue is that the font I was using is not found anymore (Segoe UI).

Thank you so much for your time and support! Thomas

tomwenseleers commented 7 years ago

Hi Thomas,

I removed the argument font from my functions, but I think that specifying the font using

options("ReporteRs-default-font" = "Segoe UI")

or passing your font as option

fontname_sans = "Segoe UI" in graph2ppt may still work - have a try!

see ?addPlot in ReporteRs

(I believe at least that these options get passed on using the ... in my functions)

cheers,

Tom


From: Thomas Telandro notifications@github.com Sent: 04 December 2016 15:57 To: tomwenseleers/export Cc: Tom Wenseleers; Comment Subject: Re: [tomwenseleers/export] Error when trying to update (#6)

Tom, I am on OSX 10.11.6. After install Quartz, all is working back again. Only new (small) issue is that the font I was using is not found anymore (Segoe UI).

Thank you so much for your time and support! Thomas

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/tomwenseleers/export/issues/6#issuecomment-264708540, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALgSvsv2Urd4D9uMvLMAjxc1ebkmooKYks5rEtTYgaJpZM4LCC5K.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tomwenseleers/export","title":"tomwenseleers/export","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/tomwenseleers/export"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Mukei in #6: Tom, \r\nI am on OSX 10.11.6.\r\nAfter install Quartz, all is working back again.\r\nOnly new (small) issue is that the font I was using is not found anymore (Segoe UI).\r\n\r\nThank you so much for your time and support!\r\nThomas\r\n"}],"action":{"name":"View Issue","url":"https://github.com/tomwenseleers/export/issues/6#issuecomment-264708540"}}}