Managing files after creating an RStudio EC2 instance - r

After following this simple tutorial http://www.louisaslett.com/RStudio_AMI/ I have setup an RStudio environment on EC2, and I'm able to run R code :)
The files that I create through RStudio - I'm not sure exactly where these files reside - can I view them on the web somewhere / can I access them via the AWS console?
Thanks!

Related

Azure Databricks: How do we access R Scripts present on DBFS?

I'm new to DataBricks. I am trying to access a .R file that is present in the DBFS storage but I cannot figure out how to do so. Any help is really appreciated.
I can read data from the storage using the file path /dbfs and also source code from the script but I want to make edits to the script.
You need some editor to do that - for example, you can setup RStudio on your cluster and connect to it via RStudio UI - in this case you can edit R files directly on DBFS.
But really, the simplest for you would be to use Databricks CLI fs command to copy the file to your local machine, make changes in the editor of your choice, and upload file back.

Publish R-markdown (Shiny doc) on remote Shiny server (in docker) - basic question

This is basic educational question. I am confused about some fundamental concepts.
So I work on my local machine and I created R-markdown (Shiny doc) . Now, if I want to publish it, I just click in the top right corner (where I previously established account at shinyapps.io and connected to it). Well due to some reasons, I would like to publish it different place then shinyapps.io.
So my understanding is that I can accomplish it if I install and configure shiny server in docker. Is this accurate? Do I need Shiny proxy as well.
I also read about dockerizing shiny app, but this sound like to much work creating container instance for each app.
The publishing button works with shinyapps.io or rstudio connect. If you'd like to publish an app using free shiny-server, you won't be able to use the publishing button. You'll need to put a copy of the app in the folder tree you configure shiny-server to publish from. This is a bit more manual. You don't necessarily need Docker, but you do need a Linux computer to run shiny-server. If you want to put your apps in docker containers, you'll want to check out shinyproxy if you're trying to go the free route. RStudio has great paid options if you want to go that route.

How to access Word Press (Elementor) code on local machine

I'm developing a website using Word Press (Elementor plugin) and I want to create a custom widget. I found a tutorial I want to follow (https://www.youtube.com/watch?v=Ko9i153o_iU), the only problem is that I have no idea how to access the code on my local machine to begin. From what I can tell, everything I'm doing is on the word press website, and the code isn't on my local machine. How do I go about getting the code onto my local machine so I can begin working with it in vscode?
You need a way to spin up local apache or nginx server and mysql, along with Wordpress. I suggest the app Local:
https://localwp.com/
Then, if you want to copy your production environment (your website), you need to get the files for the theme and any plugins onto your local environment. Local pairs with some hosting providers to make this easy. Otherwise you can install by downloading the files. Some hosting providers give you FTP or SFTP access to your site files. Figure out how you can gain access and download them.
Lastly, if you want, you can copy the database over to your local environment. There is a great plugin called WP Sync DB that does this for free. It can also be a way to push your local environment to your production environment, but I definitely suggest keeping backups if you are going to do that.

ShinyApps on AWS with Rstudio AMI

I created an AWS instance with this R Studio AMI.
The instructions point that to make the Shiny App available to public you should put it in a ShinyApps folder (public dir).
The issue I'm having though, is that my apps are accesable only through that particular directory, but I can't access them through subdirectories.
For instance:
http://<instance IP address>/shiny/username - works
http://<instance IP address>/shiny/**subdirectory**/username - doesnt work
So I can't really show more than one Shiny App on a single instance.
My goal is to create an index.html page that links several ShinyApps like this one.
Update:
I've updated my index.html with this repo
The problem is again, when I link an app from the index.html I get only the R code opens up, rather than the app.

MeteorJS source code from deployed app

I have deployed app using Meteor UP to ubuntu server on digital ocean
and have lost the source code (hard disk crash).
Is there any way to retrieve back the source code ?
Thanks
Sorry to hear that, unfortunately, this is not possible, or at least entirely possible to retrieve the source code unspoiled. When an application is deployed using MUP, that is generated as nodejs in a single file.
You can try recover some files on server and redo the project structure. Source files on server after a mup deploy are located to : /var/opt/.
Good luck !
You should consider using version control system like Git : GitHub, Bitbucket

Resources