Coder Social home page Coder Social logo

r 3.4 about radiant HOT 23 CLOSED

vnijs avatar vnijs commented on July 2, 2024
r 3.4

from radiant.

Comments (23)

subhashjaini avatar subhashjaini commented on July 2, 2024 2

Thanks again!! :)

Overall, all I needed to do was this...
(for ubuntu or debian)
sudo apt-get install librsvg2-dev
sudo su - -c "R -e "install.packages('rsvg', repos='http://vnijs.github.io/radiant_miniCRAN/')\""
sudo su - -c "R -e "install.packages('radiant', repos='http://vnijs.github.io/radiant_miniCRAN/')\""

and I was good!!!

from radiant.

vnijs avatar vnijs commented on July 2, 2024

For a linux server remove type = 'binary' and make sure to specify the correct repo (see below) . It should install from source and the latest version of Radiant is available. Note that you cannot knit reports on a server as this would be a security risk.

install.packages("radiant", repos = "http://vnijs.github.io/radiant_miniCRAN/")

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

I tried this

sudo su - -c "R -e "install.packages('radiant', repos='http://vnijs.github.io/radiant_miniCRAN/')\""

It tells me the same when I run the install.packages (in r)

Warning messages:
1: In install.packages("radiant", repos = "http://vnijs.github.io/radiant_miniCRAN/") :
installation of package ‘rsvg’ had non-zero exit status
2: In install.packages("radiant", repos = "http://vnijs.github.io/radiant_miniCRAN/") :
installation of package ‘DiagrammeR’ had non-zero exit status
3: In install.packages("radiant", repos = "http://vnijs.github.io/radiant_miniCRAN/") :
installation of package ‘radiant’ had non-zero exit status

from radiant.

vnijs avatar vnijs commented on July 2, 2024

On linux rsvg may require you to install a system utility first. Try the following and then see what it needs:

install.packages("rsvg", repos = "http://vnijs.github.io/radiant_miniCRAN/")

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

gibberish to me, but maybe this rings a bell to you...?

install.packages('rsvg', repos='http://vnijs.github.io/radiant_miniCRAN/')
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL '
http://vnijs.github.io/radiant_miniCRAN/src/contrib/rsvg_0.4.tar.gz'

Content type 'application/octet-stream' length 7857 bytes

downloaded 7857 bytes

  • installing source package ‘rsvg’ ...
    ** package ‘rsvg’ successfully unpacked and MD5 sums checked
    Package librsvg-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `librsvg-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'librsvg-2.0' found
    Using PKG_CFLAGS=
    Using PKG_LIBS=-lrsvg
    ------------------------- ANTICONF ERROR ---------------------------
    Configuration failed because librsvg-2.0 was not found. Try installing:
    • deb: librsvg2-dev (Debian, Ubuntu, etc)
    • rpm: librsvg2-devel (Fedora, EPEL)
    • csw: librsvg_dev, sunx11_devel (Solaris)
    • brew: librsvg (OSX)
      If librsvg-2.0 is already installed, check that 'pkg-config' is in your
      PATH and PKG_CONFIG_PATH contains a librsvg-2.0.pc file. If pkg-config
      is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
      R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

      ERROR: configuration failed for package ‘rsvg’
  • removing ‘/usr/local/lib/R/site-library/rsvg’

The downloaded source packages are in
‘/tmp/RtmpQJaxCh/downloaded_packages’
Warning message:
In install.packages("rsvg", repos = "
http://vnijs.github.io/radiant_miniCRAN/") :
installation of package ‘rsvg’ had non-zero exit status

On Thu, Mar 31, 2016 at 10:19 PM, Vincent Nijs [email protected]
wrote:

On linux rsvg may require you to install a system utility first. Try the
following and then see what it needs:

install.packages("rsvg", repos = "http://vnijs.github.io/radiant_miniCRAN/
")


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#50 (comment)

from radiant.

vnijs avatar vnijs commented on July 2, 2024

The utility it needs is shown in the message as suggested.

"No package 'librsvg-2.0' found"

If you are using Ubuntu you would need something like

sudo apt-get install librsvg2-bin

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

sudo apt-get install librsvg2-bin

ran... but now i tried the rsvg again and had no luck

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

I am trying
sudo apt-get install librsvg2-dev

since thts what the error recomended

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

awesome!! that unlocked it and let me download radiant on ubuntu!! Later int he summer when im bored, ill write a how-to on radiant inside digital ocean! :)

from radiant.

vnijs avatar vnijs commented on July 2, 2024

Glad that worked. Good to have this a (closed) issue in case others run into the same thing.

from radiant.

RSchwinn avatar RSchwinn commented on July 2, 2024

I ran into issues installing radiant on an under-powered ubuntu server. The problem was that R on ubuntu requires that dependencies be compiled locally from the R source code (downloaded from cran) but compiling sometimes required more than the 1GB RAM on my system. The work around is to install the packages from precompiled binaries as follows:

sudo apt-get update     # refresh
sudo apt-get install software-properties-common
sudo add-apt-repository -y "ppa:marutter/rrutter"
sudo add-apt-repository -y "ppa:marutter/c2d4u"
sudo apt-get update     # now with new repos
sudo apt-get install r-cran-readr # now replace readr with the names of the dependencies that previously failed to install.

Notice that this may be risky because these files were not officially compiled/distributed by cran. Hope this can help someone else facing this issue!

from radiant.

vnijs avatar vnijs commented on July 2, 2024

@RSchwinn I forgot that ubuntu offers binaries for (some) R-packages. Thanks for sharing.

FYI Radiant development moved to https://github.com/radiant-rstats a while back. Install instructions are available at: https://radiant-rstats.github.io/docs/install.html

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

from radiant.

vnijs avatar vnijs commented on July 2, 2024

FYI Radiant development moved to https://github.com/radiant-rstats a while back. Install instructions are available at: https://radiant-rstats.github.io/docs/install.html

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

from radiant.

vnijs avatar vnijs commented on July 2, 2024

Please clarify what you mean @subhashjaini. Example?

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

from radiant.

vnijs avatar vnijs commented on July 2, 2024

I think you are asking about running Radiant inside sqlserver. If so ... I have never done anything like that. If that is not what you are after, please provide (a lot) more detail.

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

from radiant.

vnijs avatar vnijs commented on July 2, 2024

Sorry. No idea what you mean by "r session" here :)

Are you trying to access data from the global environment or from a database? You can use Data > Manage to access data in the global environment. If you want data from a database, use Report > Rmd and specify the connection information. Then "register" the data.frame so you can access it from the dropdown menu's (https://radiant-rstats.github.io/radiant.data/reference/register.html)

from radiant.

subhashjaini avatar subhashjaini commented on July 2, 2024

from radiant.

vnijs avatar vnijs commented on July 2, 2024

Radiant uses the shiny package to communicate between an R process and the browser. There is no communication between different R sessions. Maybe shiny is something you could use or else perhaps https://github.com/r-lib/callr

from radiant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.