I have the following line on the notebook home page:
To import a notebook, drag the file onto the listing below or click here.
When I upload a text or any other file, I get an error message:
Invalid file type
Uploaded notebooks must be .ipynb files
How do I make it possible to upload any file ?
Is there any setting/ add on that will allow this?
This is now implemented on master (futur 3.0), we now have the content webservice which can deal with non-ipynb file. Just drag file onto the dashboard and it works(tm).
Keep in mind that this upload on the machine were the webserver is, not the machines were the kernels run in case they are not the same.
Related
I am supposed to access an rscript in my student account and save it but whenever I click on it instead of automatically opening rstudio it opens up in web browser as just texts.I cant figure how to get it to open in rstudio. can anyone help and explain why it won't open? I have to be save it as an rfile on my files but I cant since I cant get it there in the first place.
I would suggest save the file in your computer. Then open RStudio -> File -> Open File
I've uploaded apps to shinyapps.io in the past with little issue from RStudio. I have my shinyApp.R file (contains both server and ui) as well as the two CSV files that are used for it in the same directory.
When I click "Publish" I get the popup window as shown here:
Link to pic of check box.
I only select the .R file and the two data files to upload but when I click "Publish" I get errors about relative file references in two files that I'm not even trying to upload and have nothing to do with the app (see here Image of error screen.
It seems like rsconnect/deployApp is reading through every file in the parent and children directories regardless of whether or not I clicked the checkbox next to it. Anyone else have this issue?
I have installed Rstudio server Amazon EC2. It works fine, but I can't understand how to save files on my local computer...
In example,
x=5
write.csv(x,file="x.csv")
getwd()
[1] "/home/rstudio"
I can see the file in my working directory, but I cannot change w.d...
setwd("C:\\Users\\Paul\\Documents\\R")
Error in setwd("C:\\Users\\Paul\\Documents\\R") :
cannot change working directory
EDIT:
I get Network error: Connection timeout... if i use instructions from codingthis.com/platforms/ec2/… using Putty... Or "Host does not exist" if I use winSCP...
Any suggestions?
Best regards!
If you can't make SCP work, here's a simpler way. First I'll show how to save a plot, then how to save a CSV file that you've made with R.
You've started your EC2 instance of RStudio, thanks to helpful instructions elsewhere...
Now you've made a plot and you want to save that plot...
Look at the plot window for the "Export" button and click that, then click 'save plot as image' (or PDF if you prefer)
Follow the prompt and save it in the default location...
Now switch from the plot window to the files window by clicking on the 'Files' tab in RStudio... You should see your plot image file in the list there. Now click 'More' then "Export..."
You can edit the file name at this point...
And then after you click download it will download to your default download directory...
If you've used R to make a csv file of output, you can export that to your download directory in the same way, you can see my file 'd.csv', here with the checked box next to it in the 'Files' window. I've clicked on the 'More...' button, then 'Export...'
Now I can edit the name, click 'Download' and will go to my default download directory:
Does that answer your question? If your next question will be "how do I get files into RStudio on EC2?", please first experiment with the "Upload" button in the 'Files' window of Rstudio.
using:
Windows 7
Asp.Net MVC3
Visual Studio 2010
All major browsers
My problem involves failing to rename a directory after opening a pdf file
I open a pdf from my website and it appears in a separate tab.
I close the tab by clicking on the little X.
I try to rename the file that contained the pdf
Get “Access to the path 'foo' is denied.”
Another manisfestaion of the same problem, probably.
I open and close the pdf from my website.
I then stop the website ( Blue square button in Visual studio)
I then try to manually rename the direcory that contains the pdf file that I just opened.
Get: "The action can't b completed because the folder or a file in it is open in another program.
Close the folder or file and try again."
If I close down Visual Studio completely, I can then rename the directory.
Many Thanks.
1) Check your folder permissions to see whether you/current user has access to change folder. You can right click on that folder and select Security tab. You may change the permissions for the user and try again.
2) How are you opening the PDF ? The mentioned error will come when there is some memory reference still with the file . If open the file using window.open (path) and you close the browser instance which had the PDF, you should be able to rename the folder without any problem.
Apparently this is a problem with Windows 7 hat has been around for a while but not yet fixed.
http://answers.microsoft.com/en-us/windows/forum/windows_7-files/in-windows-7-getting-error-the-action-cant-be/449b2e05-8ed0-4a72-98bd-dde430d27e10
I ran the website on a Windows Server 2003 machine and was able to rename the directory after opening a pdf file with no problems.
I have a XDP file that Acrobat can open. It contains a PDF plus some data to fill in the form fields in the PDF.
In my HTTP request header I set
content-type to "application/vnd.adobe.xdp+xml" and
Content-Disposition to "in-line"
still my browser downloads the file and asks me if I want to Open it or save it. When I click on Open it loads the PDF form and data inside Acrobat, not in the web browser.
Do you have any idea?
UPDATE:
I reinstalled the Adobe plugin and now browser(FireFox) attempts to open the PDF but I get the following error:
that is very strange as the file is created by Acrobat it self. On the same page that throw this error, if I press OK and go to File > Save as.. and save the XDP file on desktop then drag and drop it into a new browser window, it opens it! and the address bar shows a very similar file name and location as was shown in the error (temp directory of FireFox cache).
It looks like an administration problem. Your file is being downloaded but Adobe doesn't have the access rights to that folder.
Contact your network administrator is my only answer.
I wonder if this open source project will solve your web display problem: pdf.js If not immediately, perhaps you can help it along.