Error in install.packages: internet routines cannot be loaded using StatET while it works in R console

后端 未结 3 1951
天涯浪人
天涯浪人 2020-12-20 11:18

I was a happy user of StatET on Ubuntu 14.04 until recently when after R upgrades strange things begin to happen. Anything related to network operations fails. For example,

相关标签:
3条回答
  • 2020-12-20 12:02

    If it is indeed a problem with the variable LD_LIBRARY_PATH then you can set it in eclipse for your specified R configuration via Run->Run configurations->Environment tab.

    you may also need to check the settings for your R environment.

    0 讨论(0)
  • 2020-12-20 12:07

    Check this suggestion too...

    "Fixed ! I just added the following command to my .bash_profile, and the problem was resolved. export LD_LIBRARY_PATH=$TOOLS/curl-7.43.0/lib:$LD_LIBRARY_PATH"

    or these ones

    0 讨论(0)
  • 2020-12-20 12:20

    Based on the information given in the question and comments it seems that the issue is that for some reason the LD_LIBRARY_PATH is incorrect when using StatET. I don't know why that is and there may be a better solution to this problem but you should be able to work around it at least. Add a line to .Rprofile or Rprofile.site that uses Sys.setenv() to set your LD_LIBRARY_PATH to something sensible. Based on the information given above that might look something like this:

    Sys.setenv(LD_LIBRARY_PATH="/usr/lib/R/lib:/usr/lib/x86_64-linux-gnu:/usr/lib")
    
    0 讨论(0)
提交回复
热议问题