3
Given a set of functions, like creating a package on Windows OS?
For example for the two functions below:
soma = function(x, y){
res = x + y
res
}
multiplica = function(x,y){
res = x*y
res
}
3
Given a set of functions, like creating a package on Windows OS?
For example for the two functions below:
soma = function(x, y){
res = x + y
res
}
multiplica = function(x,y){
res = x*y
res
}
2
On Rstudio, click on Project > New Project
Then click on New Directory
Then click on R Package
Name the package. It cannot contain spaces nor -
in addition to other rules.
Rstudio will open a standard project with the following files:
Enter folder R and create how many files .R
you want with your functions.
Click on Build & Reload
. Ready the package has been created.
Of course packages can be much more complicated than that. I recommend reading of this link which is a brief introduction. But surely the best reference is the hadley’s book. @Juliotrecenti gave a presentation about creating packages which is also on youtube.
Browser other questions tagged r
You are not signed in. Login or sign up in order to post.
You use an R? editor like Rgui?
– Deivid Farias
I use only Rstudio.
– Wagner Jorge