This is the repository for an R package intended to provide tools to analyze and vizualise wind turbine power curves.
- A working installation of R. This can be obtained from e.g. http://r-project.org.
- Some experience with using R to explore data and plot results.
- Basic understanding of how to use command line programs.
Click on the "Download ZIP" button on the lower right of this page.
You have the option of installing and running the package, or just sourcing the R code.
This will have to be done every time you need these functions. No help will be available for the functions.
Copy all files from the R
directory into a 'code' directory somewhere. Then, in R, source these files:
# define the project root
project.root <- drive:/path/to/my/stuff
# define where functions live
code.dir = file.path(project.root,
"code")
# source these functions
code.files = dir(code.dir, pattern = "\\.R$")
for (file in code.files){
source(file = file.path(code.dir,file))
}
This approach installs all functions, help, and a vignette. Run the following code in the R console:
# identify where the code was downloaded to
setwd('~/Downloads/')
try(detach(name = "package:PowerPerformance",unload = TRUE))
library("roxygen2")
roxygenize(package.dir = "PowerPerformance")
system("R CMD build PowerPerformance --no-build-vignettes")
system("R CMD check PowerPerformance")
system("R CMD INSTALL PowerPerformance --preclean --build")
try(file.remove(file.path(getwd(),"PowerPerformance.pdf")))
system("R CMD Rd2pdf PowerPerformance")
# and make the package available
library("PowerPerformance")
You can then include these files in any code by including the line require(PowerPerformance)
in your code.
#Documentation Documentation is provided in several forms:
- From R. After installation, type ??PowerPerformance at the R console
- As a PDF manual
- As a PDF vignette, which can be found at https://github.com/AndyClifton/PowerPerformance/vignettes/powercurves.pdf.
#Reporting issues and errors Please use the issue-tracker at https://github.com/AndyClifton/PowerPerformance/issues to report issues.
#Wiki Please use the wiki at https://github.com/AndyClifton/PowerPerformance/wiki as you feel fit.
#Comments This software is provided as is, with no guarantees.
#Recent changes 9.15.2015 First commit.
#Code Maintainers
- Andy Clifton (National Renewable Energy Laboratory)
#Project Contributors
- Rozenn Wagner, Danish Technical University