christophergandrud / repmis Goto Github PK
View Code? Open in Web Editor NEWMiscellaneous tools for reproducible research with R.
Miscellaneous tools for reproducible research with R.
I've been having huge problems with my students in the R programming class Im teaching that uses repmis from a Windows version.
You first has to choose where to temporarily download the files (Y/n choice) and rJava is used. In most cases you don't need to use the xlsx file. Would it be possible to move it to "suggests" and load this package into R if xlsx is used.
/Måns
Hey Christopher, I'm trying to redo all my blogposts after dropbox changed the policy re public directories and your package looks like my best bet. The following now doesn't work:
load(file(source_data("http://dl.dropboxusercontent.com/u/25710348/Blogposts/data/IL2010.Rda")))
I'd like to be able to run something like the following:
source_data("http://dl.dropboxusercontent.com/u/25710348/Blogposts/data/IL2010.Rda")
R packages have a mechanism for allowing their developers to indicate how they wish to be cited. This can be particularly important in making sure that a relevant software paper is cited, rather / or in addition to citing the package itself, since for many academic developers only citations to the software paper have much value.
It looks to me like LoadandCite ignores the existing citation mechanism, e.g. LoadandCite("knitr", file = "refs.bib")
does match the recommended citation of citation("knitr")
.
I found this package because I want to be able to install R package versions that are compatible with the R provided in Ubuntu 14.04 LTS. But even installing this package fails because install.packages('repmis')
tries to install the latest dependencies and they are not compatible with R 3.0.2. It'd be nice if the package that tries to solve the old package support could actually be installed in older versions of R. This is just a note, I think the problem is endemic to the R packaging eco-system.
Dear Christopher
In source_DropboxData is it possible to change the functionality slightly to allow additional arguments to be used for read.table. i.e. add the ellipsis as an argument to the function as this will then be available to read.table
source_DropboxData(file, key, sha1 = NULL, sep = ",", header = TRUE, ...)
read.table(temp_file, sep = sep, header = header, ...)
Very useful package, thank you
It would be nice, if the function to cache downloads would work with compressed files as well.
Most big files on the internet are compressed these days.
Include arguments to InstallOldPackages
and LoadandCite
that allow the user to specify what version of R should be installed.
Also suggest website to download it from.
I guess it due to a dependency in rJava?
Use rio for import in source_url.
Currently, rio needs to be able to determine a file type without the extension. Possibly see leeper/rio#36
Add ability to install only missing packages.
Toby Dylan Hocking suggests improving LoadandCite
so that it can install old package versions.
Tried to install "repmis" on Win 64 Enterprise with R 3.1.2 64 bit. All software is up to date.
library(repmis)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dirname(this$RuntimeLib)
error: a character vector argument expected
Error: package or namespace load failed for ‘repmis’
library(rJava)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dirname(this$RuntimeLib)
error: a character vector argument expected
Error: package or namespace load failed for ‘rJava’
Use argument name URL
instead of url
(which is a function in base R).
Hi Christopher,
I wrote some functions to clean the workspace of R.
I think this is an important element to achieve reproducible research in R.
The code is very little, see it here:
https://gist.github.com/behrica/864e9424f0b6a6b72db7
The only public function is cleanWS(), which is deleting all objects and unloads all libraries, except the base libraries.
This should put the R environment in an "clean" state. It would be useful to have this function in the beginning of each r script or R markdown file, which should be reproducible,
If you would find it useful to get included in your library, let me know and I could send you a pull request.
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.