andreacirilloac / ramazon Goto Github PK
View Code? Open in Web Editor NEWrun your shiny App on Amazon AWS running a function. √
License: MIT License
run your shiny App on Amazon AWS running a function. √
License: MIT License
I'm excited by this new package, but as a Windows user I'm unable to get stuck in just yet. Opening an issue on this so anyone similarly interested can keep track of the progress with a Windows version and contribute if they are able.
within ramazon_mac function a call is made to https://download3.rstudio.org/ubuntu-12.04/x86_64 in order to download a shiny server version, which is set fixed to 1.5.3.838 ( thanks to the recent update from @ScientistJake ).
We should find a way to make amazon dinamically determine the last version and subsequently redirect himself toward the right url.
we could think about something similar to what is don within updateR function to detect last r version ( https://github.com/AndreaCirilloAC/updateR/blob/master/R/updateR.R)
In the end I couldn't use the function but the bash script was a good guide to set up the AWS instance!
The issues I ran into were that the shiny server version is out of date, perhaps theres a way to pull the most up to date version. The other minor problem is that some packages end up in env$other of the sessioninfo so don't get picked up by ramazon and in an unrelated problem some packages fail to install without some other dependencies on ubuntu. This was hard to detect without turning off error sanitizing on shiny server. A useful option could be sanitize_errors = T/F; if true would then overwrite the server configuration file turning off error sanitizing. This makes trouble shouting much easier. Maybe a robust solution to the packages would be to scp the libraries of the attached packages to the server which would also allow for packages installed from sources other than cran but this might be too complicated.
Anyway it's an awesome package/ workflow!
Hello,
Once I ran the ramazon function, I am getting:
WELL DONE!
YOU CAN FIND YOUR SHINY APP AT THE FOLLOWING URL:
35.177.231.89:3838/aws_shiny
Warning messages:
1: running command 'chmod 400 C:/Users/Bobi/Documents/aws_shiny/myname.pem' had status 127
2: running command 'chmod 700 bash_script.sh' had status 127
3: running command 'ssh -o StrictHostKeyChecking=no -v -i C:/Users/Bobi/Documents/aws_shiny/myname.pem [email protected] 'bash -s' < bash_script.sh' had status 127
4: running command 'exit' had status 127
5: running command 'scp -v -i C:/Users/Bobi/Documents/aws_shiny/myname.pem -r C:/Users/Bobi/Documents/aws_shiny [email protected]:/srv/shiny-server/' had status 127
Any ideas what is going wrong?
Since all needed packages require to be detected, search() function needs to be replaced with sessionInfo() in order the handle cases where packages are loaded but not attached:
For instance when calling functions using the "::" operator.
I am getting the following error and R doesn't respond after this:
gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error is not recoverable: exiting now
Warning message:
In untar(tarfile = "nlopt-2.4.2.tar.gz") :
'/bin/tar -xf 'nlopt-2.4.2.tar.gz'' returned error code 2
configure: Starting to install library to /tmp/RtmpwjVn6m/R.INSTALL37ee989b20a/nloptr/nlopt-2.4.2
./configure: line 3325: cd: nlopt-2.4.2: No such file or directory
Installing ramazon via install_github("andreacirilloac/ramazon") returns the following error:
Error : (converted from warning) /private/var/folders/4_/sc4m82l91s9821d5d63z8zd40000gn/T/Rtmp05lIVJ/R.INSTALL136e4ab2da8c/ramazon/man/ramazon.Rd:27: unexpected UNKNOWN '\warnings'
ERROR: installing Rd objects failed for package ‘ramazon’
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.