Giter Site home page Giter Site logo

gisma / uavrst Goto Github PK

View Code? Open in Web Editor NEW
40.0 11.0 17.0 18.7 MB

UAV related Remote Sensing Toolbox

Home Page: https://gisma.github.io/uavRst

R 60.00% JavaScript 31.75% C++ 2.82% CSS 5.43%
r lidar aerial-imagery uav remote-sensing forestry machine-learning giscience

uavrst's Introduction

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Travis-CI Build Status License

Unmanned Aerial Vehicle R Tools

The R-based UAV-tools consist of two packages:

Unmanned Aerial Vehicle Remote Sensing Toolbox - uavRst

The uavRstanalysis toolbox package is far from being mature. You will need for most of the uavRst functions a bunch of third party software. The most comfortable way to fulfill these requirements is to install QGIS, GRASS- and SAGA-GIS. Following the excellent provided by the RQGIS team will give you a good first try to ensure a smooth working environment.

Most of the LiDAR related operations can be done by the great R package lidR. However for some of the basic point cloud related operations you will need to install the LAStool software. The LAStools toolset is available at the rapidlasso homepage. Please download it and unzip it as usual. For Windows systems it is by default expected that you put it at C:/LASTools, running Linux at ~/apps/LASTools.

Note: For running LAStools tools under Linux you first need to install wine.

In addition you need to install the link2GI package. In case of any problems drop an issue or try to use the actual github hosted version of the package.

Nevertheless all mentioned software packages have to be installed correctly on your the OS. Most of it tested under Windows and Linux and should run... The most easiest way to obtain a fairly good runtime enviroment is to setup Linux as a dual boot system or in a VB.

A full list of necessary libaries and binaries beyond R will hopefully (soon) be provided.

Wiki

You will find some tutorials and examples at the uavRst Wiki. Please feel free to participate.

Installation

Note: Currently (10/2022) the velox, spatial.tools and gdalUtils packages are archived on CRAN and only available as an archived/Github version. Up to now the functionality in the uavRST package is not substituted. So you have to install these packages from source:

devtools::install_url('http://cran.r-project.org/src/contrib/Archive/spatial.tools/spatial.tools_1.6.2.tar.gz')

devtools::install_github("hunzikp/velox")

devtools::install_url('http://cran.r-project.org/src/contrib/Archive/gdalUtils/gdalUtils_2.0.3.tar.gz')


To install the actual development version from github you need to have installed the devtools package.

devtools::install_github("gisma/uavRst", ref = "master")

uavrst's People

Contributors

gisma avatar ludwigm6 avatar luisemw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uavrst's Issues

Ineffective if-else-statement

treepos at this position should be changed to variable r which was declared in line 62. Otherwise you could also get rid of line 62. I know this should not really create a bug, since most of the time some kind of raster object should be given to the function call which rasterToPoints should be able to handle. Just wanted to let you know ;)

treepos <- raster::rasterToPoints(treepos,spatial = TRUE)

path_run not defined in function call

Dear Chris,
I am not sure if I am 100% right but I think I traced back a problem I have with the pc2D_dsm-function as well as with pc2D_dtm back to this line.

if (!file.exists(paste0(path_run,name))){

If call the the function like this:

dtm <- uavRst::pc2D_dtm(laspcFile = paste0(envrmt$path_data,"lidar/las_mof_aio_/"),
gisdbasePath = envrmt,
tension = 20 ,
sampleGridSize = 25,
targetGridSize = 0.5)
with laspcFile-variable linking to a directory including a bunch of las-files I will get the following error message:

Error in paste0(path_run, name) : object 'path_run' not found

I looked through the code of the function, and for me it seems that one is neither asked to set the variable path_run nor does the function retrive it from somwhere.
Any ideas if something goes wrong on my side? Because I really can't get these functions to work right now..

Thanks for your help!

make_lidr_catalog - function is not exported to namespace in develop branch

export(make_bandnames)

Hi!
I recently run into an issue while trying to use the very useful lidr_catalog function in your packages while having installed the develop-branch of this repo. It is actually not exported to the namespace of the packages. This is also the case for the version which is available via cran.
If it isn't on purpose that you want to get rid of the function would you mind fixing it here on the develop branch as well later on cran?
Thanks in adavance!
Regards,
Darius.

lidR reverse dependency check

Hi,

uavRst (CRAN version) depends (in suggest field) on lidR. I planned to release lidR 2.0.0 before to have any dependency but too late... I searched in the source code to find occurrence of lidR. I found only few occurrences of readLAS, writeLAS and lasclipRectangle. Reading the code it seems ok, your code should still work with the new release.

I also ran a revert dependency check but devtools changed and the new package revdepcheck provide a non-useful output

# Platform

|field    |value                        |
|:--------|:----------------------------|
|version  |R version 3.5.1 (2018-07-02) |
|os       |Linux Mint 18.3              |
|system   |x86_64, linux-gnu            |
|ui       |RStudio                      |
|language |(EN)                         |
|collate  |fr_CA.UTF-8                  |
|ctype    |fr_CA.UTF-8                  |
|tz       |America/Toronto              |
|date     |2018-12-21                   |

# Dependencies

|package |old   |new |Δ  |
|:-------|:-----|:---|:--|
|lidR    |1.6.1 |NA  |*  |

# Revdeps

## Couldn't check (1)

|package |version |error |warning |note |
|:-------|:-------|:-----|:-------|:----|
|uavRst  |?       |      |        |     |

## All (1)

|package |version |error |warning |note |
|:-------|:-------|:-----|:-------|:----|
|uavRst  |?       |      |        |     |

Could you confirm that I will not break your current release with the update of lidR.

Cheers

makeFP status 127

sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

After the successfull creation of a flightplan with makeFP() I get the message:
.
.
.
NOTE 1: Have Fun
NOTE 2: You will find all parameters in the logfile: D:/caldern/uav/fp_lahn/2017_05_20/logfp_lahn_40m_solo_MAPIR2_survey_area_lahn_2017_05_20_16-53.log

Warning message:
running command 'rm -rf D:/caldern/uav/fp_lahn/2017_05_20/run' had status 127

rlas and lidR compatibility

Hi, I saw that you may plan to release your package soon. I would like to point out minor issues you may encounter with the next release of rlas and lidR

In rlas 1.2.0 (not yet on cran) the function readlasheader will be replaced by read.lasheader. The first one still exists but will be progressively deprecated then removed. Both are identical. this is only for name constancy with new functions read.las and write.las.

In lidR 1.5.0 (not yet on cran) the piping operator %>% will not be loaded anymore. I removed the dependency to magrittr. If you want to continue to use %>% you need to load magrittr. But it is probably not an issue because you don't have anymore a code that use this pipe.

Depending on when you plan to release your package you can wait for an update of rlas or consider that you will have to make an update of your package later (in several months).

Regards.

lidR tree detection not working

treepos_lidR <- function(chm =NULL,

The lidR tree_detection function changed and should now look something like this:

treepos_lidR <- function(las =NULL,
                         movingWin = 7,
                         minTreeAlt = 2) {
  
  # if (class(treepos) %in% c("RasterLayer", "RasterStack", "RasterBrick")) {
  #   chm <- raster::raster(chm)
  # }
  
  localmaxima <- lidR::tree_detection(las = las, algorithm = lmf(ws = movingWin, hmin = minTreeAlt))
  projection(localmaxima) <- chm@crs
  return(localmaxima)
}

installation failed: Error : object 'SegmentCrowns' is not exported by 'namespace:ForestTools' ERROR: lazy loading failed for package 'uavRst'

devtools::install_github("gisma/uavRst", ref = "master", dependencies = TRUE)
Downloading GitHub repo gisma/uavRst@master
from URL https://api.github.com/repos/gisma/uavRst/zipball/master
Installing uavRst
Installing 1 package: lidR
Warning: package ‘lidR’ is in use and will not be installed
"C:/PROGRA1/R/R-341.4/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD
INSTALL "C:/Users/shovon2t/AppData/Local/Temp/RtmpmA2NkC/devtools2f1861a31e48/gisma-uavRst-6289b7c"
--library="C:/Program Files/R/R-3.4.4/library" --install-tests

  • installing source package 'uavRst' ...
    ** libs

*** arch - i386
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-341.4/include" -DNDEBUG -I"C:/Program Files/R/R-3.4.4/library/Rcpp/include" -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-341.4/include" -DNDEBUG -I"C:/Program Files/R/R-3.4.4/library/Rcpp/include" -O2 -Wall -mtune=generic -c brewCppFun.cpp -o brewCppFun.o
brewCppFun.cpp: In function 'std::string mergePopupRows(Rcpp::CharacterVector, Rcpp::CharacterVector)':
brewCppFun.cpp:110:18: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
if (names[i] == "Feature ID" |
^
brewCppFun.cpp:111:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
names[i] == "Longitude" | names[i] == "Latitude") {
^
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-341.4/include" -DNDEBUG -I"C:/Program Files/R/R-3.4.4/library/Rcpp/include" -O2 -Wall -mtune=generic -c mapviewCppFun.cpp -o mapviewCppFun.o
c:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o uavRst.dll tmp.def RcppExports.o brewCppFun.o mapviewCppFun.o -LC:/PROGRA1/R/R-341.4/bin/i386 -lR
installing to C:/Program Files/R/R-3.4.4/library/uavRst/libs/i386

*** arch - x64
c:/Rtools/mingw_64/bin/g++ -I"C:/PROGRA1/R/R-341.4/include" -DNDEBUG -I"C:/Program Files/R/R-3.4.4/library/Rcpp/include" -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o
c:/Rtools/mingw_64/bin/g++ -I"C:/PROGRA1/R/R-341.4/include" -DNDEBUG -I"C:/Program Files/R/R-3.4.4/library/Rcpp/include" -O2 -Wall -mtune=generic -c brewCppFun.cpp -o brewCppFun.o
brewCppFun.cpp: In function 'std::string mergePopupRows(Rcpp::CharacterVector, Rcpp::CharacterVector)':
brewCppFun.cpp:110:18: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
if (names[i] == "Feature ID" |
^
brewCppFun.cpp:111:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
names[i] == "Longitude" | names[i] == "Latitude") {
^
c:/Rtools/mingw_64/bin/g++ -I"C:/PROGRA1/R/R-341.4/include" -DNDEBUG -I"C:/Program Files/R/R-3.4.4/library/Rcpp/include" -O2 -Wall -mtune=generic -c mapviewCppFun.cpp -o mapviewCppFun.o
c:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o uavRst.dll tmp.def RcppExports.o brewCppFun.o mapviewCppFun.o -LC:/PROGRA1/R/R-341.4/bin/x64 -lR
installing to C:/Program Files/R/R-3.4.4/library/uavRst/libs/x64
** R
** data
** inst
** preparing package for lazy loading
Error : object 'SegmentCrowns' is not exported by 'namespace:ForestTools'
ERROR: lazy loading failed for package 'uavRst'

  • removing 'C:/Program Files/R/R-3.4.4/library/uavRst'
    In R CMD INSTALL
    Installation failed: Command failed (1)

chmseg_FT asking for SpatialPointDataFrame in vignette

Thanks for fixing that first part, but I just realized there is another issue with that function: In the vignette of chmseg_FT for treepos it is asked to supply a SpatialPointsDataFrame. To avoid confusion I would change the vignette text to ask for a raster object. Though I would even consider to include functionality to supply both, a raster or a spPointdf indicating treetops.

Originally posted by @goergen95 in #14 (comment)

Error: Creation of output file failed

dsn = path_run,

The writeOGR function results in an error as well. This might be due that only the directory path_run is specified, however for writeOGR to work it needs a filename as well.

For me, this code actually resulted in no error and the creation of a output:

rgdal::writeOGR(obj = stat, layer = "polyStat", driver = "ESRI Shapefile", dsn = paste0(path_run,"stat.shp"), overwrite_layer = TRUE)

Problems with "makeFP" on windows

I am using R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
on Windows 10, release: ">= 8 x64", version "build 9200", machine: "x86-64"

problems i figuered out:

  • "projectDir" needs double backslashes
  • surveyArea needs as.character(c(lon, lat...))

Errors i couldn't fix:

My command:
makeFP(projectDir = "C:\Users\Marius\Documents\Uni\Master\WS_1617\log_mog\data\proj_run", locationName = "test",
surveyArea = as.character(c(50.840329, 8.682913)), flightAltitude = 40,
followSurface = T, demFn = "lidar_dsm_01m.tif",
altFilter = 1, horizonFilter = 30, flightPlanMode = "track", presetFlightTask = "remote", overlap = 0.9,
maxSpeed = 20, maxFlightTime = 10, picRate = 2, windCondition = 1,
uavType = "solo", cameraType = "GP3_7MP",
dA = T)

The error:
Error in file.copy(from = surveyArea, to = file.path(projectDir, "data")) :
more 'from' files than 'to' files

Text of log file that is created:
[ 2017-05-18 13:52:59 ] INFO
[ 2017-05-18 13:52:59 ] INFO
[ 2017-05-18 13:52:59 ] INFO --------------------- START RUN ---------------------------
[ 2017-05-18 13:52:59 ] INFO Working folder: C:\Users\Marius\Documents\Uni\Master\WS_1617\log_mog\data\proj_run/test/2017_05_18

Thanks for your help!

Wrong output path

Hi Gisma,

while running the useful lidR (v2) code (from the wiki) to compute ditigal terrain models, i run into an issue.

las = lidR::writeLAS(las,paste0(level0path,basename(fn)))

the corrected las files are stored on the wrong path wehn using own folder structur.
eg: i have folderstr: test/las/ (with org las files)
test/las/example/

when using the code the output will be generated in the test folder and not the subfolders.
So the output las data is not in the set path0.
Same problem is with further functions: the returning data is saved in the wrong #folders

Help would be nice.

Got an error running function chmseg_GWS()

Hi,
I have a question regarding the error message I got from running function chmseg_GWS(). I installed all the packages needed. Saw this error came out:

grasserror

Do you know what that means and thank you for reading!

'make_lidr_catalog' is not an exported object from 'namespace:uavRst'

Just downloaded the master branch with devtools::install_github("gisma/uavRst", ref = "master")
also tested the develop branch with devtools::install_github("gisma/uavRst", ref = "develop")

when installing the masterbranch yesterday on the windows machine at the university the function was available. Not so today on Linux

output of SessionInfo():

Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Linux Mint 19.1

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=de_DE.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=de_DE.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] uavRst_0.5-2      smoothie_1.0-1    factoextra_1.0.5  ggplot2_3.1.0     TileManager_0.3.0
 [6] glcm_1.6.1        RStoolbox_0.2.3   corrplot_0.84     ForestTools_0.2.0 rgdal_1.3-6      
[11] mapview_2.6.3     link2GI_0.3-6     lidR_2.0.0        raster_2.8-4      sp_1.3-1         

loaded via a namespace (and not attached):
  [1] colorspace_1.4-0   class_7.3-15       leaflet_2.0.2      rprojroot_1.3-2    satellite_1.0.1   
  [6] base64enc_0.1-3    fs_1.2.6           rstudioapi_0.9.0   roxygen2_6.1.1     remotes_2.0.2     
 [11] ggrepel_0.8.0      prodlim_2018.04.18 lubridate_1.7.4    xml2_1.2.0         codetools_0.2-16  
 [16] splines_3.5.2      doParallel_1.0.14  pkgload_1.0.2      caret_6.0-81       png_0.1-7         
 [21] rgeos_0.4-2        shiny_1.2.0        compiler_3.5.2     backports_1.1.3    assertthat_0.2.0  
 [26] Matrix_1.2-15      lazyeval_0.2.1     cli_1.0.1          later_0.7.5        htmltools_0.3.6   
 [31] prettyunits_1.0.2  tools_3.5.2        bindrcpp_0.2.2     gtable_0.2.0       glue_1.3.0        
 [36] reshape2_1.4.3     dplyr_0.7.8        Rcpp_1.0.0         nlme_3.1-137       iterators_1.0.10  
 [41] crosstalk_1.0.0    timeDate_3043.102  gower_0.1.2        stringr_1.3.1      ps_1.3.0          
 [46] mime_0.6           devtools_2.0.1     XML_3.98-1.16      envimaR_0.1.0      MASS_7.3-51.1     
 [51] scales_1.0.0       ipred_0.9-8        promises_1.0.1     parallel_3.5.2     curl_3.3          
 [56] yaml_2.2.0         memoise_1.1.0      geosphere_1.5-7    rpart_4.1-13       stringi_1.2.4     
 [61] desc_1.2.0         foreach_1.4.4      e1071_1.7-0        pkgbuild_1.0.2     lava_1.6.4        
 [66] rlang_0.3.1        pkgconfig_2.0.2    commonmark_1.7     lattice_0.20-38    purrr_0.2.5       
 [71] bindr_0.1.1        sf_0.7-2           recipes_0.1.4      htmlwidgets_1.3    processx_3.2.1    
 [76] tidyselect_0.2.5   plyr_1.8.4         magrittr_1.5       R6_2.3.0           generics_0.0.2    
 [81] DBI_1.0.0          pillar_1.3.1       withr_2.1.2        units_0.6-2        survival_2.43-3   
 [86] nnet_7.3-12        tibble_2.0.1       crayon_1.3.4       usethis_1.4.0      grid_3.5.2        
 [91] data.table_1.12.0  callr_3.1.1        ModelMetrics_1.2.2 digest_0.6.18      classInt_0.3-1    
 [96] webshot_0.5.1      xtable_1.8-3       httpuv_1.4.5.1     stats4_3.5.2       munsell_0.5.0     
[101] viridisLite_0.3.0  sessioninfo_1.1.1 ```

Installation \\ ERROR: lazy loading failed for package 'uavRst'

Tried to install with the following command on a completely new and blank installtion of R/RStudio:

devtools::install_github("gisma/uavRst", ref = "master", dependencies = TRUE)

After successfull installation of the dependencies, process terminated with the following output:

from URL https://api.github.com/repos/gisma/uavRst/zipball/master
Installing uavRst
"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet  \
  CMD INSTALL  \
  "C:/Users/Henning/AppData/Local/Temp/RtmpED16XI/devtoolsbf82b74c8/gisma-uavRst-a95d6fc"  \
  --library="C:/Users/Henning/Documents/R/win-library/3.3" --install-tests 

* installing *source* package 'uavRst' ...
** libs

*** arch - i386
C:/RBuildTools/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG    -I"C:/Users/Henning/Documents/R/win-library/3.3/Rcpp/include" -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c RcppExports.cpp -o RcppExports.o
C:/RBuildTools/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG    -I"C:/Users/Henning/Documents/R/win-library/3.3/Rcpp/include" -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c brewCppFun.cpp -o brewCppFun.o
brewCppFun.cpp: In function 'std::string mergePopupRows(Rcpp::CharacterVector, Rcpp::CharacterVector)':
brewCppFun.cpp:110:18: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
     if (names[i] == "Feature ID" |
                  ^
brewCppFun.cpp:111:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
           names[i] == "Longitude" | names[i] == "Latitude") {
                                              ^
C:/RBuildTools/3.4/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG    -I"C:/Users/Henning/Documents/R/win-library/3.3/Rcpp/include" -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c mapviewCppFun.cpp -o mapviewCppFun.o
C:/RBuildTools/3.4/mingw_32/bin/g++ -shared -s -static-libgcc -o uavRst.dll tmp.def RcppExports.o brewCppFun.o mapviewCppFun.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-33~1.3/bin/i386 -lR
installing to C:/Users/Henning/Documents/R/win-library/3.3/uavRst/libs/i386

*** arch - x64
C:/RBuildTools/3.4/mingw_64/bin/g++  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG    -I"C:/Users/Henning/Documents/R/win-library/3.3/Rcpp/include" -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c RcppExports.cpp -o RcppExports.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG    -I"C:/Users/Henning/Documents/R/win-library/3.3/Rcpp/include" -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c brewCppFun.cpp -o brewCppFun.o
brewCppFun.cpp: In function 'std::string mergePopupRows(Rcpp::CharacterVector, Rcpp::CharacterVector)':
brewCppFun.cpp:110:18: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
     if (names[i] == "Feature ID" |
                  ^
brewCppFun.cpp:111:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
           names[i] == "Longitude" | names[i] == "Latitude") {
                                              ^
C:/RBuildTools/3.4/mingw_64/bin/g++  -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG    -I"C:/Users/Henning/Documents/R/win-library/3.3/Rcpp/include" -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c mapviewCppFun.cpp -o mapviewCppFun.o
C:/RBuildTools/3.4/mingw_64/bin/g++ -shared -s -static-libgcc -o uavRst.dll tmp.def RcppExports.o brewCppFun.o mapviewCppFun.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-33~1.3/bin/x64 -lR
installing to C:/Users/Henning/Documents/R/win-library/3.3/uavRst/libs/x64
** R
** data
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called 'iterators'
ERROR: lazy loading failed for package 'uavRst'
* removing 'C:/Users/Henning/Documents/R/win-library/3.3/uavRst'```

Installation from github

githubinstall("uavRst")
Suggestion:

  • gisma/uavRst Unmanned Aerial Vehicle Remote Sensing Tools
    Do you want to install the package (Y/n)? y
    Downloading GitHub repo gisma/uavRst@master
    from URL https://api.github.com/repos/gisma/uavRst/zipball/master
    Installing uavRst
    "C:/PROGRA1/R/R-351.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL
    "C:/Users/paul1/AppData/Local/Temp/Rtmp029tId/devtools50e42d90366f/gisma-uavRst-eaee888"
    --library="C:/Users/paul1/Documents/R/win-library/3.5" --install-tests
  • installing source package 'uavRst' ...
    ** libs

*** arch - i386
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-351.0/include" -DNDEBUG -I"C:/Users/paul1/Documents/R/win-library/3.5/Rcpp/include" -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-351.0/include" -DNDEBUG -I"C:/Users/paul1/Documents/R/win-library/3.5/Rcpp/include" -O2 -Wall -mtune=generic -c brewCppFun.cpp -o brewCppFun.o
brewCppFun.cpp: In function 'std::string mergePopupRows(Rcpp::CharacterVector, Rcpp::CharacterVector)':
brewCppFun.cpp:110:18: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
if (names[i] == "Feature ID" |
^
brewCppFun.cpp:111:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
names[i] == "Longitude" | names[i] == "Latitude") {
^
c:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-351.0/include" -DNDEBUG -I"C:/Users/paul1/Documents/R/win-library/3.5/Rcpp/include" -O2 -Wall -mtune=generic -c mapviewCppFun.cpp -o mapviewCppFun.o
c:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o uavRst.dll tmp.def RcppExports.o brewCppFun.o mapviewCppFun.o -LC:/PROGRA1/R/R-351.0/bin/i386 -lR
installing to C:/Users/paul1/Documents/R/win-library/3.5/uavRst/libs/i386

*** arch - x64
c:/Rtools/mingw_64/bin/g++ -I"C:/PROGRA1/R/R-351.0/include" -DNDEBUG -I"C:/Users/paul1/Documents/R/win-library/3.5/Rcpp/include" -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o
c:/Rtools/mingw_64/bin/g++ -I"C:/PROGRA1/R/R-351.0/include" -DNDEBUG -I"C:/Users/paul1/Documents/R/win-library/3.5/Rcpp/include" -O2 -Wall -mtune=generic -c brewCppFun.cpp -o brewCppFun.o
brewCppFun.cpp: In function 'std::string mergePopupRows(Rcpp::CharacterVector, Rcpp::CharacterVector)':
brewCppFun.cpp:110:18: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
if (names[i] == "Feature ID" |
^
brewCppFun.cpp:111:46: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
names[i] == "Longitude" | names[i] == "Latitude") {
^
c:/Rtools/mingw_64/bin/g++ -I"C:/PROGRA1/R/R-351.0/include" -DNDEBUG -I"C:/Users/paul1/Documents/R/win-library/3.5/Rcpp/include" -O2 -Wall -mtune=generic -c mapviewCppFun.cpp -o mapviewCppFun.o
c:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o uavRst.dll tmp.def RcppExports.o brewCppFun.o mapviewCppFun.o -LC:/PROGRA1/R/R-351.0/bin/x64 -lR
installing to C:/Users/paul1/Documents/R/win-library/3.5/uavRst/libs/x64
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error : object 'readlasheader' is not exported by 'namespace:rlas'
ERROR: lazy loading failed for package 'uavRst'

  • removing 'C:/Users/paul1/Documents/R/win-library/3.5/uavRst'
    In R CMD INSTALL
    Installation failed: Command failed (1)
    Warning message:
    In fread(download_url, sep = "\t", header = FALSE, stringsAsFactors = FALSE, :
    Found and resolved improper quoting out-of-sample. First healed line 4848: <<Puriney honfleuR "Evening, honfleuR" by Seurat>>. If the fields are not quoted (e.g. field separator does not appear within any field), try quote="" to avoid this warning.

Error in reading temporary shapefile

stat1 <- rgdal::readOGR(path_run,paste0(basename(x[i]),"Stat"), verbose = TRUE)

This line throws up an error in Win10 that the data source cannot be opened.

Error in ogrListLayers(dsn = dsn) : Cannot open data source

I think it is because of a wrong positioning of the paste0() function.
Is it possible to change the line to something like the following:

stat1 <- rgdal::readOGR(paste0(path_run,basename(x[i]),"Stat.shp"), verbose = TRUE)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.