Solution:
In your incident attempt to include setwd("path/to/project/")
in main.R
where path/to/project/
contains main.R
.
After you can source
functions.R
either directly by source("functions.R")
in case both files lie in the similar directory or source("sub-folder/functions.R")
in case the latter file is sized in a sub-folder.
In case you're not performing on a RStudio
project, alters are the performing directory of main.R
might be your home directory.
Afterwards discussing with Microsoft Support, the original reason of the problem is to have more than one zip file in the experiment.
As our first 'Execute R Script' module is only doing text cleansing, we determined to remove this first module and its zip file, and do the cleansing within the remaining 'Execute R Script' module.
Currently, with just one zip file it performs fine. According to Microsoft Support, the problem also subsists with Python scripts modules.
The package opens and performs only fine in the regular R Console.
> mixsiar_gui()
Loading required package: ggplot2
Loading required package: gWidgetsRGtk2
Loading required package: RGtk2
Loading required package: gWidgets
Loading required package: cairoDevice
Loading required package: R2jags
Loading required package: rjags
Loading required package: coda
Linked to JAGS 3.4.0
Loaded modules: basemod,bugs
Attaching package: ‘R2jags’
The following object is masked from ‘package:coda’:
traceplot
Loading required package: MASS
Loading required package: RColorBrewer
Loading required package: reshape
Loading required package: lattice
Show Traceback
Rerun with Debug
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file 'build_mix_win.r': No such file or directory