Installing FieldImage.Extra Issue

101 views
Skip to first unread message

Abdallah Yussuf Ali Abdelmajeed

unread,
Nov 8, 2023, 6:59:19 PM11/8/23
to FIELDimageR: A R package to analyze orthomosaic images from field trials.
Hi, I have been trying for so long to install the package but I could not manage to do so, can anybody help me out. > devtools::install_github("filipematias23/FIELDimageR.Extra") Downloading GitHub repo filipematias23/FIELDimageR.Extra@HEAD ── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── checking for file 'C:\Users\Abdelmajeed\AppData\Local\Temp\RtmpwXXhh0\remotes11f0eec4b3f\filipematias23-FIELDimageR.Extra-c10ca97/DESCRIPTION' (364ms) preparing 'FIELDimageR.Extra': checking DESCRIPTION meta-information ... checking for LF line-endings in source and make files and shell scripts checking for empty or unneeded directories building 'FIELDimageR.Extra_0.0.2.tar.gz' Installing package into ‘C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3’ (as ‘lib’ is unspecified) ERROR: failed to lock directory 'C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3' for modifying Try removing 'C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3/00LOCK-FIELDimageR.Extra' Warning message: In i.p(...) : installation of package ‘C:/Users/ABDELM~1/AppData/Local/Temp/RtmpwXXhh0/file11f030822f30/FIELDimageR.Extra_0.0.2.tar.gz’ had non-zero exit status

pspawar

unread,
Nov 8, 2023, 9:38:19 PM11/8/23
to FIELD...@googlegroups.com
Hi, It seems like there's a lock on the directory preventing modifications. You can try manually deleting the '00LOCK-FIELDimageR.Extra' file from 'C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3/'. After that, attempt to install the package again. Let us know if you encounter any issues.

On Thu, 9 Nov, 2023, 05:29 Abdallah Yussuf Ali Abdelmajeed, <ay1...@fayoum.edu.eg> wrote:
Hi, I have been trying for so long to install the package but I could not manage to do so, can anybody help me out. > devtools::install_github("filipematias23/FIELDimageR.Extra") Downloading GitHub repo filipematias23/FIELDimageR.Extra@HEAD ── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── checking for file 'C:\Users\Abdelmajeed\AppData\Local\Temp\RtmpwXXhh0\remotes11f0eec4b3f\filipematias23-FIELDimageR.Extra-c10ca97/DESCRIPTION' (364ms) preparing 'FIELDimageR.Extra': checking DESCRIPTION meta-information ... checking for LF line-endings in source and make files and shell scripts checking for empty or unneeded directories building 'FIELDimageR.Extra_0.0.2.tar.gz' Installing package into ‘C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3’ (as ‘lib’ is unspecified) ERROR: failed to lock directory 'C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3' for modifying Try removing 'C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3/00LOCK-FIELDimageR.Extra' Warning message: In i.p(...) : installation of package ‘C:/Users/ABDELM~1/AppData/Local/Temp/RtmpwXXhh0/file11f030822f30/FIELDimageR.Extra_0.0.2.tar.gz’ had non-zero exit status

--
You received this message because you are subscribed to the Google Groups "FIELDimageR: A R package to analyze orthomosaic images from field trials." group.
To unsubscribe from this group and stop receiving emails from it, send an email to FIELDimageR...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/FIELDimageR/c53e9181-9d5d-4884-a53f-ce2f1eebc011n%40googlegroups.com.

Abdallah Yussuf Ali Abdelmajeed

unread,
Nov 8, 2023, 9:57:49 PM11/8/23
to FIELD...@googlegroups.com
Hi, thank you for your response, I have deleted the lock folder and deleted the temp folder, then restarted the pc. Unfortunately it's still not working.
Regards, 

pspawar

unread,
Nov 8, 2023, 9:59:52 PM11/8/23
to FIELD...@googlegroups.com
What is the error message now?

Abdallah Yussuf Ali Abdelmajeed

unread,
Nov 8, 2023, 10:04:20 PM11/8/23
to FIELD...@googlegroups.com
Still as the previous one I posted, and the folder was created back again. 

Abdallah Yussuf Ali Abdelmajeed

unread,
Nov 8, 2023, 10:11:07 PM11/8/23
to FIELD...@googlegroups.com
I have also deleted the created folder "FIELDimageR.extra" in the same path but still I am receiving this error message"devtools::install_github("filipematias23/FIELDimageR.Extra")
Downloading GitHub repo filipematias23/FIELDimageR.Extra@HEAD
── R CMD build ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  checking for file 'C:\Users\Abdelmajeed\AppData\Local\Temp\RtmpGoNiqN\remotes6f001fe375cf\filipematias23-FIELDimageR.Extra-c10ca97/DESCRIPTION' (389ms)

─  preparing 'FIELDimageR.Extra':
  checking DESCRIPTION meta-information
  checking for LF line-endings in source and make files and shell scripts
  checking for empty or unneeded directories
  building 'FIELDimageR.Extra_0.0.2.tar.gz'
   
Installing package into ‘C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
* installing *source* package 'FIELDimageR.Extra' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called 'mapedit'
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package 'FIELDimageR.Extra'
* removing 'C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3/FIELDimageR.Extra'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/ABDELM~1/AppData/Local/Temp/RtmpGoNiqN/file6f0055c63/FIELDimageR.Extra_0.0.2.tar.gz’ had non-zero exit status"
------------------------------------------------------------------------------------------------------------------------------------------
Abdallah Abdelmajeed
Doctoral Candidate | Poznan University of Life Sciences
Ecology and Environmental Protection Department
Bioclimatology Lab
E-mail: abdallah.a...@puls.edu.pl | Address: ul. Piątkowska 94, 60-649 Poznan, POLAND
Website: www1.up.poznan.pl/wisgp

 


pspawar

unread,
Nov 8, 2023, 10:15:19 PM11/8/23
to FIELD...@googlegroups.com
First install mapedit package 

Abdallah Yussuf Ali Abdelmajeed

unread,
Nov 8, 2023, 10:17:48 PM11/8/23
to FIELD...@googlegroups.com
Thank you for your support, I have deleted the two folders;   '00LOCK-FIELDimageR.Extra' $  'FIELDimageR.Extra' then I installed the package "mapedit", after that I tried to install 'FIELDimageR.Extra' and it worked.

 install.packages("mapedit")
Installing package into ‘C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
also installing the dependencies ‘leaflet.extras’, ‘leafpm’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/leaflet.extras_1.0.0.zip'
Content type 'application/zip' length 1992952 bytes (1.9 MB)
downloaded 1.9 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/leafpm_0.1.0.zip'
Content type 'application/zip' length 62510 bytes (61 KB)
downloaded 61 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/mapedit_0.6.0.zip'
Content type 'application/zip' length 122591 bytes (119 KB)
downloaded 119 KB

package ‘leaflet.extras’ successfully unpacked and MD5 sums checked
package ‘leafpm’ successfully unpacked and MD5 sums checked
package ‘mapedit’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\Abdelmajeed\AppData\Local\Temp\RtmpGoNiqN\downloaded_packages
> devtools::install_github("filipematias23/FIELDimageR.Extra")
Downloading GitHub repo filipematias23/FIELDimageR.Extra@HEAD
── R CMD build ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  checking for file 'C:\Users\Abdelmajeed\AppData\Local\Temp\RtmpGoNiqN\remotes6f00484a7ff9\filipematias23-FIELDimageR.Extra-c10ca97/DESCRIPTION' ...
  preparing 'FIELDimageR.Extra':
  checking DESCRIPTION meta-information ...
  checking for LF line-endings in source and make files and shell scripts
  checking for empty or unneeded directories
  building 'FIELDimageR.Extra_0.0.2.tar.gz'
   
Installing package into ‘C:/Users/Abdelmajeed/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
* installing *source* package 'FIELDimageR.Extra' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (FIELDimageR.Extra)
> # devtools::install_github("OpenDroneMap/FIELDimageR")
> library(FIELDimageR.Extra) 
Loading required package: nlme 

------------------------------------------------------------------------------------------------------------------------------------------
Abdallah Abdelmajeed
Doctoral Candidate | Poznan University of Life Sciences
Ecology and Environmental Protection Department
Bioclimatology Lab
E-mail: abdallah.a...@puls.edu.pl | Address: ul. Piątkowska 94, 60-649 Poznan, POLAND
Website: www1.up.poznan.pl/wisgp

 

On Thu, Nov 9, 2023 at 3:59 AM pspawar <pspa...@gmail.com> wrote:

Abdallah Yussuf Ali Abdelmajeed

unread,
Nov 8, 2023, 10:20:46 PM11/8/23
to FIELD...@googlegroups.com
Thanks but should mapedit be in this installation script on GitHub? "install.packages(c('terra','mapview','sf','stars','caret','devtools'))
devtools::install_github("filipematias23/FIELDimageR.Extra")

# devtools::install_github("OpenDroneMap/FIELDimageR")"

pspawar

unread,
Nov 8, 2023, 10:33:29 PM11/8/23
to FIELD...@googlegroups.com
Awesome....Your feedback is appreciated. We'll make sure to include 'mapedit' in the installation script. If you have any questions or feedback for further improvements in the package,  feel free to let us know. Your input is valuable..Thank you...

Abdallah Yussuf Ali Abdelmajeed

unread,
Nov 8, 2023, 10:40:10 PM11/8/23
to FIELD...@googlegroups.com
Thank you very much. Definitely, I'll start exploring it with deferent UAV data. 

Reply all
Reply to author
Forward
0 new messages