Code Monkey home page Code Monkey logo

ramazon's People

Contributors

andreacirilloac avatar daniel-wells avatar scientistjake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ramazon's Issues

Package installation fails

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’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ramazon’
    Error: Failed to install 'ramazon' from GitHub:
    (converted from warning) installation of package ‘/var/folders/4_/sc4m82l91s9821d5d63z8zd40000gn/T//RtmpjQml6Q/file1102b55f24b/ramazon_0.1.tar.gz’ had non-zero exit status

Error while installing package ‘nloptr’

I am getting the following error and R doesn't respond after this:

  • installing source package ‘nloptr’ ...
    ** package ‘nloptr’ successfully unpacked and MD5 sums checked
    checking for g++... g++
    checking whether the C++ compiler works... yes
    checking for C++ compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking how to run the C++ preprocessor... g++ -E
    checking whether we are using the GNU C++ compiler... (cached) yes
    checking whether g++ accepts -g... (cached) yes
    checking for pkg-config... no
    configure: Now testing for NLopt header file.
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking nlopt.h usability... no
    checking nlopt.h presence... no
    checking for nlopt.h... no
    configure: Need to download and build NLopt
    trying URL 'http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz'
    Error in download.file(url = "http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz", :
    cannot open URL 'http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz'
    Execution halted
    /bin/tar: This does not look like a tar archive

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

find a way to track the most recent version of shiny server and subsequently update system command

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)

ramazon for Windows

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.

status 127

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?

Little updates

Great package! Still (mostly) works really well!

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!

replace search() with sessionInfo()

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.

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.