Re: [Rd] Link R with Tcl 8.6 on Windows

2015-09-28 Thread Karim Mezhoud
Hi,
I Think you can install devel version by:

 devtools::install_github("tcltk/tcl")

from this link https://github.com/tcltk/tcl

Karim



On Mon, Sep 28, 2015 at 6:36 PM, Adrian Waddell  wrote:

> Dear all,
>
> I am working on an R package intended for CRAN that requires Tcl version
> 8.6 because of the TclOO tcl extension and the -angle option for canvas
> text items.
>
> R for Windows currently still ships with Tcl 8.5. Does anyone have
> experience with linking R under Windows to a Tcl interpreter of version 8.6?
>
> When I link R 3.2.2 (installed from the binary on Windows 8) to a custom
> Tcl installation of version 8.6 (e.g. from ActiveState for both 32bit or
> 64bit) using the MY_TCLTK environment variable, then loading the tcltk
> package will result with a tk85.dll not found error. This problem can be
> “fixed” by copying and renaming the tk86.dll and the tcl86.dll files in the
> bin folder of the activetcl installation to tk85.dll and tcl85.dll.
>
> However, this setup does not work well for me; sometimes, when creating a
> number of involved toplevel windows at once, some of them are not created
> properly and are left completely unresponsive, see the attached image. I
> have not managed to create a small contained example so far. But I can
> share my code, if necessary.
>
> Is there a reason that under Windows R looks for the tk85.dll in
> particular, effectively forcing the Tcl version to 8.5? Also, does anyone
> know a remedy to this gui error?
>
> Thanks,
>
> Adrian Waddell
>
>
> > sessionInfo()
> R version 3.2.2 (2015-08-14)
> Platform: i386-w64-mingw32/i386 (32-bit)
> Running under: Windows 8 x64 (build 9200)
>
> locale:
> [1] LC_COLLATE=English_Canada.1252  LC_CTYPE=English_Canada.1252
> [3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
> [5] LC_TIME=English_Canada.1252
>
> attached base packages:
> [1] tools tcltk stats graphics  grDevices utils
>  datasets
> [8] methods   base
>
> other attached packages:
> [1] loon_0.8.4.4
>
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Fwd: Rstudio R-devel libR.so

2015-03-09 Thread Karim Mezhoud
Dear All,
I am actually on R-devel using shell consol. When I run RStudio, it can't
find libR.so in the new /lib folder where is libRblas.so  libRlapack.so.
At first step I configure R-devel to share library with ./configure
--enable-R-shlib.

when I copied libR.so from  /usr/lib/R/lib/libR.so (stable version R 3.1)
to /usr/local/R-devel/lib/libR.so (R-devel version), That doesn't work.

please find the detail  at below.
Karim mezhoud




$which R
/usr/bin/R
$R
> R.Version()[13]
$version.string
[1] "R version 3.1.2 (2014-10-31)

> Sys.getenv("R_HOME")
[1] "/usr/lib/R"

> .Library
[1] "/usr/lib/R/library"
> .libPaths()
[1] "/home/mezhoud/R/x86_64-pc-linux-gnu-library/3.1"
[2] "/usr/local/lib/R/site-library"
[3] "/usr/lib/R/site-library"
[4] "/usr/lib/R/library"
"


$sudo apt-get build-dep r-base
$sudo apt-get install subversion ccache
$mkdir ~/svn/
$cd ~/svn/
$svn co https://svn.r-project.org/R/trunk r-devel/R

$cd /svn/r-devel/R
$./configure --enable-R-shlib
$make
$make check
$sudo make install rhome=/usr/local/R-devel

$which R
/usr/local/bin/R

$cd /usr/local/bin
$R

>R.Version()[13]
$version.string
[1] "R Under development (unstable) (2015-03-07 r67951)"

> .libPaths()
[1] "/usr/local/R-devel/library"
> .Library
[1] "/usr/local/R-devel/library"

> Sys.getenv("R_HOME")
[1] "/usr/local/R-devel"

$rstudio
R shared library (/usr/local/R-devel/lib/libR.so) not found.
If this is a custom build of R, was it built with the --enable-R-shlib
option?

$export RSTUDIO_WHICH_R=/usr/local/bin/R
$rstudio
R shared library (/usr/local/R-devel/lib/libR.so) not found.
If this is a custom build of R, was it built with the --enable-R-shlib
option?

$export RSTUDIO_WHICH_R=/usr/local/R-devel/bin/R
$rstudio
R shared library (/usr/local/R-devel/lib/libR.so) not found.
If this is a custom build of R, was it built with the --enable-R-shlib
option?

$sudo locate libR.so
/usr/lib/libR.so
/usr/lib/R/lib/libR.so


When I get a symbolic link with:

 sudo ln -s  /usr/lib/R/lib/libR.so /usr/local/R-devel//lib/libR.so


The R session had a fatal error.


ERROR r error 4 (R code execution error) [errormsg=Error in
.Internal(getOption(x)) :

there is no .Internal function 'getOption'

]; OCCURRED AT: core::Error r::exec::evaluateString(const std::string&,
SEXPREC**, r::sexp::Protect*) /home/ubuntu/rstudio/src/cpp/r/RExec.cpp:

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Fwd: Rstudio R-devel libR.so

2015-03-09 Thread Karim Mezhoud
Hi,
I forgot

tools/rsync-recommended

before

./configure



Thanks


On Mon, Mar 9, 2015 at 6:51 PM, Kevin Ushey  wrote:

> I believe you need to set the environment variable R_HOME_DIR to the
> path pointing to your R-devel installation before launching RStudio.
>
> On Mon, Mar 9, 2015 at 9:49 AM, Karim Mezhoud  wrote:
> > Dear All,
> > I am actually on R-devel using shell consol. When I run RStudio, it can't
> > find libR.so in the new /lib folder where is libRblas.so  libRlapack.so.
> > At first step I configure R-devel to share library with ./configure
> > --enable-R-shlib.
> >
> > when I copied libR.so from  /usr/lib/R/lib/libR.so (stable version R 3.1)
> > to /usr/local/R-devel/lib/libR.so (R-devel version), That doesn't work.
> >
> > please find the detail  at below.
> > Karim mezhoud
> >
> >
> >
> >
> > $which R
> > /usr/bin/R
> > $R
> >> R.Version()[13]
> > $version.string
> > [1] "R version 3.1.2 (2014-10-31)
> >
> >> Sys.getenv("R_HOME")
> > [1] "/usr/lib/R"
> >
> >> .Library
> > [1] "/usr/lib/R/library"
> >> .libPaths()
> > [1] "/home/mezhoud/R/x86_64-pc-linux-gnu-library/3.1"
> > [2] "/usr/local/lib/R/site-library"
> > [3] "/usr/lib/R/site-library"
> > [4] "/usr/lib/R/library"
> > "
> >
> >
> > $sudo apt-get build-dep r-base
> > $sudo apt-get install subversion ccache
> > $mkdir ~/svn/
> > $cd ~/svn/
> > $svn co https://svn.r-project.org/R/trunk r-devel/R
> >
> > $cd /svn/r-devel/R
> > $./configure --enable-R-shlib
> > $make
> > $make check
> > $sudo make install rhome=/usr/local/R-devel
> >
> > $which R
> > /usr/local/bin/R
> >
> > $cd /usr/local/bin
> > $R
> >
> >>R.Version()[13]
> > $version.string
> > [1] "R Under development (unstable) (2015-03-07 r67951)"
> >
> >> .libPaths()
> > [1] "/usr/local/R-devel/library"
> >> .Library
> > [1] "/usr/local/R-devel/library"
> >
> >> Sys.getenv("R_HOME")
> > [1] "/usr/local/R-devel"
> >
> > $rstudio
> > R shared library (/usr/local/R-devel/lib/libR.so) not found.
> > If this is a custom build of R, was it built with the --enable-R-shlib
> > option?
> >
> > $export RSTUDIO_WHICH_R=/usr/local/bin/R
> > $rstudio
> > R shared library (/usr/local/R-devel/lib/libR.so) not found.
> > If this is a custom build of R, was it built with the --enable-R-shlib
> > option?
> >
> > $export RSTUDIO_WHICH_R=/usr/local/R-devel/bin/R
> > $rstudio
> > R shared library (/usr/local/R-devel/lib/libR.so) not found.
> > If this is a custom build of R, was it built with the --enable-R-shlib
> > option?
> >
> > $sudo locate libR.so
> > /usr/lib/libR.so
> > /usr/lib/R/lib/libR.so
> >
> >
> > When I get a symbolic link with:
> >
> >  sudo ln -s  /usr/lib/R/lib/libR.so /usr/local/R-devel//lib/libR.so
> >
> >
> > The R session had a fatal error.
> >
> >
> > ERROR r error 4 (R code execution error) [errormsg=Error in
> > .Internal(getOption(x)) :
> >
> > there is no .Internal function 'getOption'
> >
> > ]; OCCURRED AT: core::Error r::exec::evaluateString(const std::string&,
> > SEXPREC**, r::sexp::Protect*) /home/ubuntu/rstudio/src/cpp/r/RExec.cpp:
> >
> > [[alternative HTML version deleted]]
> >
> > __
> > R-devel@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
>

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] R_HOME default setting

2015-03-10 Thread Karim Mezhoud
Dear All,
I would like to reset default R_HOME PATH for R.3.1.3.
I installed R-devel in /usr/local/R-devel but I can't install many packages
as tcltk.
I uninstalled R-devel and I would reuse R.3.1.3 but the PATH is remaining
to  /usr/local/R-devel.

I touch ~.Renviron file with

R_HOME=/usr/lib/R/bin/
RSTUDIO_R_HOME=/usr/lib/R/bin/

R_LIBS=~/R/x86_64-pc-linux-gnu-library/3.1

R_LIBS_USER=${R_LIBS_USER-'~/R/x86_64-pc-linux-gnu-library/3.1'}

Without success.
Any idea?
which file has the R_HOME setting?
Thanks
Karim

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel