Commit 4eac63ed authored by jml's avatar jml
Browse files

typo

parent 7811e581
......@@ -12,7 +12,6 @@ Depends:
R (>= 3.2.0)
Imports:
frostr,
jsonlite,
friendlyts,
timemanip
Remotes: git::git@git.nilu.no:rextapi/frostr.git,
......
......@@ -25,7 +25,7 @@ frostlyr_get_data <- function(x,username=NULL,password=NULL) {
to <- timemanip::posixlt2char(x$timeObj$toDateTime(),ISO8601=TRUE)
referencetime <- paste0(from,"/",to)
res <- frostr::get_short_data(frostObj=api,stations=station_id,referencetime=referencetime,elements=x$elementObj$element_id,timeresolutions=timeRes2timeResfrost(x$timeObj$timeResolution()))
res <- frostr::get_short_data(frostObj=api,stations=unique(station_id),referencetime=referencetime,elements=x$elementObj$element_id,timeresolutions=timeRes2timeResfrost(x$timeObj$timeResolution()))
return(res)
}
......
......@@ -22,6 +22,7 @@ cd ~/
mkdir tmp_frostlyr
cd tmp_frostlyr
git clone git@git.nilu.no:rspacetimemanip/timemanip.git
git clone git@git.nilu.no:rextapi/rapiclient.git
git clone git@git.nilu.no:rextapi/frostr.git
git clone git@git.nilu.no:rfriendlyts/friendlyts.git
```
......@@ -29,6 +30,7 @@ git clone git@git.nilu.no:rfriendlyts/friendlyts.git
In R, write:
```r
install.packages("~/tmp_frostlyr/timemanip",repos=NULL,type="source",dependencies = "Imports")
install.packages("~/tmp_frostlyr/rapiclient",repos=NULL,type="source",dependencies = "Imports")
install.packages("~/tmp_frostlyr/frostr",repos=NULL,type="source",dependencies = "Imports")
install.packages("~/tmp_frostlyr/friendlyts",repos=NULL,type="source",dependencies = "Imports")
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment