vle-forge / rvle Goto Github PK
View Code? Open in Web Editor NEWR wrapper
License: GNU General Public License v3.0
R wrapper
License: GNU General Public License v3.0
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 and gvle work and it has already worked on a similar platform.
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)
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
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)
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 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"
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.
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 :
topMaybe 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 "." "./.." "./../.."
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
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.
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.
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]
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
Remove seed
and combination
functions.
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
I can not install rvle. I got the following error message
Running aclocal...
Running autoheader...
Running autoconf...
Running libtoolize...
libtoolize: You should add the contents of m4/libtool.m4' to
aclocal.m4'.
libtoolize: You should add the contents of m4/ltoptions.m4' to
aclocal.m4'.
libtoolize: You should add the contents of m4/ltsugar.m4' to
aclocal.m4'.
libtoolize: You should add the contents of m4/ltversion.m4' to
aclocal.m4'.
libtoolize: You should add the contents of m4/lt~obsolete.m4' to
aclocal.m4'.
Running automake...
automake: error: no 'Makefile.am' found for any configure output
We need two modes to distribute RVLE.
cd rvle
./autogen.sh
cd ../
R CMD INSTALL rvle
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.
Crash directly when loading rvle in rstudio
To reproduce:
library(rvle)
On a simple R session, it works
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.