I am pretty new to R, so I have probably done a newbie-fail. I can not write anything in my different scripts. The only thing I can, is to write directly to the console. Can someone please help? I have some task that has to be done soon, so every help would be appreciated.
I am only allowed to write when I make a new script....
Thanks
If you're in a hurry:
Copy all your files to a new folder and work with them there. It should take case of most problems like this.
Related
I am working on a project which requires me to give the user a list of do/dont's which shouldn't be edited.
So is it possible to make read-only comments.
Any help would be appreciated thanks!!!
(Note: its not a rshiny script)
This is not possible. R scripts are regular files, all parts of them are editable.
Maybe you should use a read only repository and put your code there?
How to make a git repository read-only?
I never had to use sections of the code with read only access, and I am not sure if we can make this kind of thing.
I'm looking to make my code available to others to run, and they need the correct csv files to run my code.
Once they have git cloned my repo, they need to get the data
so I currently have:
u = 'https://someURL/data/RegularSeasonCompactResults.csv'
download.file(u,'RegularSeasonCompactResults.csv')
data = read.table('RegularSeasonCompactResults.csv')
However, if the user runs this the second time, it will re-download the file, even though that is not necessary.
This seems like it could be a reoccurring problem for people, so im wondering if there is a built in solution to this?
Wrap it with if(!file.exists("RegularSeasonCompactResults.csv")){ ... }
I figured out how to do a lot of things in the JGit library, such as commit files, find out the status of all files (ie. changed, modified, untracked etc), but i can't figure out how to unstage files i added to the index. Could someone let me know how to do this and maybe point me to some documenation as the eclipse site has none, and i can't find any on Google.
Also if anyone know how to ammend a commit i would much appreciate knowing that too.
Thanks.
Looks like you found a way to unstage files but ran into trouble as explained in your other question:
repository.getIndex().remove(getWorkignDirectoryAsFile(), new File(getWorkignDirectoryAsFile(), fileName));
repository.getIndex().write();
Did you solve your issue with the above? I notice that repository.getIndex() is deprecated and org.eclipse.jgit.dircache.DirCache should be used instead.
To amend a previous commit, you should look at
org.eclipse.jgit.api.CommitCommand.setAmend(boolean)
Would be great if you could report on your own answers if you found any.
Ok, so I have an excel spreadsheet that contains data that I would like to copy directly into an SQLite db using Menial Base, a db editor. I have tried a number of different methods such as trying to convert from .csv and .txt extensions, and nothing is working the way I need it to, so I am now resorting to Automator. From what I understand, Automator is a very powerful application, I just don't have any clue how to get it to do what I need it to, or if it's even capable of doing what I need it to. All I need it to do is copy a cell from excel, command-tab over to Base, and paste it into a cell, go back to Excel, press down and copy the next value, and then go back over into Base, press down, and paste. Then repeat and repeat and repeat a thousand times. Its not overly complicated, but I was wondering if anyone out there knows if this sort of thing is possible in automator. Would I maybe need to write my own AppleScript or something? Any thoughts or insights would be greatly appreciated! Thanks
I don't know exactly how you might go about doing the copy and paste function, but it looks as though using an AppleScript is going to be your best bet. See here, Hope that helps
Although I'm still poking around in the docs and online, I figured I'd ask this one here, for future folks who run into it.
Using copylocale for localization, I made a typo (e.g., "en_FR" instead of "fr_FR") and mistakenly created a locale I don't want. What's the proper way to remove it? Is it enough to simply delete it from my framework directory, or is there a helper app somewhere that handles the cleanup if there's more to it than that?
Thanks in advance!
you should be able to simply delete it from the locale directory. The copylocale just creates a copy, nothing more. Just nuke it and you should be good to go. More information here:
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Runtime_Localization