GithubHelp home page GithubHelp logo

rvle's People

Contributors

chabrier avatar devs-labs avatar duboz avatar eric-casellas avatar picasa avatar quesnel avatar rtrepos avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rvle's Issues

symbol length_error unfound when loading rvle on windows

I got the following error when loading rvle (library rvle):

Le point d'entrée de procédure _ZNSt12length_errorD2Ev est introuvable dasn la bibliothèque de liens dynamiques libstdc++-6.dll

  • vle-1.1.2
  • R version 3.2.3 (RGui, not rstudio)
  • windows 7

vle and gvle work and it has already worked on a similar platform.

Error when loading a vpz from rvle.

On windows 8 (or seven) the errror occured :

"Failed to initialized prefix from registry. Try to "
"use the current executable to determine the prefix "
"but access to cmake, vle, curl or wget will fail." (PathWin 32 line 115)

win: launching simulation leads to an error

rvle.log is filled with:

Error in rvle_run: fail to spawn

The other functionnalities, looking at experiment conditions, changing the output plugin of views seem ok.

On windows 7 with vle-2.0.0-alpha1

win32: default VLE_HOME not well defined

If VLE_HOME is not set, the default path is set according Glib::get_home_dir.
This function relies on environment variable HOME (which is not necessarly declared).

Launching R seems to set an environment variable HOME.
In a CLI : echo %HOME% return %HOME% (which means not defined)
In a R session : Sys.getenv("HOME") returns c:\users\login\Documents\vle

Then, typically, into a console one can have :
VLE_HOME set to c:\users\login\vle
And into a R session :
VLE_HOME set to c:\users\login\Documents\vle

A solution is to provide a VLE_HOME environment variable.
Another solution is to set, before loading rvle :

Sys.setenv(VLE_HOME="c:\users\login\vle")
library(rvle)

win32: link to vle.dll

On win 32, in function .onLoad,
we try to change the search path (for the R seesion) by pushing the lib directory of vle install. It does not work the PATH is not changed. the lib indl is not found.

Moreover, on the check it is said that the search path should not be changed into onLoad. A possible solution is to write .onAttach and .onDettach functions.

Theis bug is maybe related to bu #8 .

locale modifications when loading rvle

Locale are modified when loading rvle.

In a R prompt:

Sys.getlocale()
[1] "LC_CTYPE=fr_FR.UTF-8;LC_NUMERIC=C;LC_TIME=fr_FR.UTF-8;LC_COLLATE=fr_FR.UTF-8;LC_MONETARY=fr_FR.UTF-8;LC_MESSAGES=fr_FR.UTF-8;LC_PAPER=fr_FR.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=fr_FR.UTF-8;LC_IDENTIFICATION=C"
library(rvle)
Sys.getlocale()
[1] "fr_FR.UTF-8"

What about providing a new function rvle.source(package="mypackage") ?

R scripts are often dedicated to specific models (or vle packages) and it seems difficult to share code (provide high level functions) into the rvle package that should be kept simple I think.

A solution could be to provide R packages to models or vle packages, but it requires lot of technical check due to the dev of R packages.

A simple way could be to provide R scripts into eg. mypackage/R/export.R
and to provide a function in rvle (eg rvle.source) that simply source this file.

set_view_plugin with sotrage does not set the header

When we use rvle.set_view_plugin to storage the option 'header on top' is not set. Thus the resulting data.frame has no column names in R.

The map to config the output with the header should be set in the vpz on the call of rvle.set_view_plugin :

top

remove the script configure

Maybe we can remove the configure script from the repository to avoid the following error if the user does not have use the ./autogen.sh

configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."

rvle compiling under ubuntu 15.10

Error reported:

$ R CMD INSTALL rvle
checking for Boost headers version >= 0.0.0... yes
checking for Boost's header version...
configure: error: invalid value: boost_major_version=
ERROR: configuration failed for package ‘rvle’

Note: vle, packages are installed without error

rvle 1.1.3 README.rst incomplete

Hi,

When installing rvle on our Debian Jessy server, it seemed that aclocal was missing when running autogen.sh file:

vle@server:~/vle-1.1.3/rvle[v1.1.3]> ./autogen.sh 
Running aclocal...
./autogen.sh: 8: ./autogen.sh: aclocal: not found
vle@server:~/vle-1.1.3/rvle[v1.1.3]> 

It seems that automake is not installed on the system and is not asked to be installed in README.rst file.

crash with rstudio and boost::spirit

To reproduce the bug, we have to launch the simulation of file generic_with_header.vpz of record package record.meteo (which relies on pkg vle.reader which is linked to boost::spirit) : it works with R and it crashes on rstudio.

It seems that the problem occurs on vle/reader/table_file_reader.hpp:109 in the instantiation of the grammar of boost spirit (classic).

Note: I haven't found any tool for debugging this in rstudio specifically.

It is not possible to disable some outputs from rvle functions in R

since -beta1, rvle::new or rvle::run print informations on R console

 > sunflo <- new("Rvle", file="sunflo_web.vpz", pkg="sunflo")
Context: Context initialized [prefix=/usr] [home=/home/casadebaig/.vle]
rvle_experiment_get_seed is unavailable.
> run(sunflo)
rvle_experiment_set_seed is unavailable.Context: Context initialized [prefix=/usr] [home=/home/casadebaig/.vle]
runSubProcess: Context: Context initialized [prefix=/usr] [home=/home/casadebaig/.vle]
runSubProcess: Context: Context initialized [prefix=/usr] [home=/home/casadebaig/.vle]

However, some output are catchable (the string rvle_experiment_get_seed is unavailable.)

> suppressMessages(sunflo <- new("Rvle", file="sunflo_web.vpz", pkg="sunflo"))
Context: Context initialized [prefix=/usr] [home=/home/casadebaig/.vle]
rvle_experiment_get_seed is unavailable.
> a <- capture.output(sunflo <- new("Rvle", file="sunflo_web.vpz", pkg="sunflo"))
Context: Context initialized [prefix=/usr] [home=/home/casadebaig/.vle]

win32: unfound symbol into intdl

Message of the error when library(rvle).
It seems the is no conflict of intdl into the PATH.

Symbol unfound : libintdl_setlocalle into intdl
into function nDL

win R-3.5.0 ABI changed

under Windows with the latest R stable version (3.5.0), the rvle compiled package for windows doesn't load. (it works well with R-3.4.4)

error message :
Error: package or namespace load failed for ‘rvle’:
package ‘rvle’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version

INSTALL: can not install on Debian

I can not install rvle. I got the following error message

./autogen.sh

Running aclocal...
Running autoheader...
Running autoconf...
Running libtoolize...
libtoolize: You should add the contents of m4/libtool.m4' toaclocal.m4'.
libtoolize: You should add the contents of m4/ltoptions.m4' toaclocal.m4'.
libtoolize: You should add the contents of m4/ltsugar.m4' toaclocal.m4'.
libtoolize: You should add the contents of m4/ltversion.m4' toaclocal.m4'.
libtoolize: You should add the contents of m4/lt~obsolete.m4' toaclocal.m4'.
Running automake...
automake: error: no 'Makefile.am' found for any configure output

next release use R CMD build rvle

We need two modes to distribute RVLE.

  • If the user uses the Git repository:
cd rvle
./autogen.sh
cd ../
R CMD INSTALL rvle
  • If the user uses the released tarball:
R CMD INSTALL rvle_1.0.1-2.tar.gz

In (1) we need to remove the configure script and for (2) we need to provide a classical tarball provide by R CMD build rvle.

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.