file must be character string

0 votes
I am struggling with environmental asscocition analysis in R shiny package easyLG where I want to do landscape genomics analysis. The error appears as below:

 library("easyLG")
> easyLG_app()
Warning: Error in setwd: character argument expected
  119: setwd
  118: convertData [helper.R#7]
  117: <reactive:getData> [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#24]
  101: getData
  100: renderPrint [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#28]
   99: func
   83: origRenderFunc
   82: output$text1
    2: shiny::runApp
    1: easyLG_app
Warning: Error in setwd: character argument expected
  119: setwd
  118: convertData [helper.R#7]
  117: <reactive:getData> [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#24]
  101: getData
  100: renderPrint [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#28]
   99: func
   83: origRenderFunc
   82: output$text1
    2: shiny::runApp
    1: easyLG_app
Warning in dir.create("Data_conversion") :
  'Data_conversion' already exists
Warning: Error in if: missing value where TRUE/FALSE needed
  120: test_extension
  119: vcf2lfmm
  118: convertData [helper.R#11]
  117: <reactive:getData> [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#24]
  101: getData
  100: renderPrint [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#28]
   99: func
   83: origRenderFunc
   82: output$text1
    2: shiny::runApp
    1: easyLG_app
Warning in dir.create("Data_conversion") :
  'Data_conversion' already exists
Warning: Error in if: missing value where TRUE/FALSE needed
  120: test_extension
  119: vcf2lfmm
  118: convertData [helper.R#11]
  117: <reactive:getData> [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#24]
  101: getData
  100: renderPrint [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#28]
   99: func
   83: origRenderFunc
   82: output$text1
    2: shiny::runApp
    1: easyLG_app
Warning in dir.create("Data_conversion") :
  'Data_conversion' already exists
Warning: Error in read.table: 'file' must be a character string or connection
  118: stop
  117: read.table
  116: read.csv
  115: extractBiovar [helper.R#37]
  114: <reactive:getBioclimData> [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#67]
   98: getBioclimData
   97: renderDataTable [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#73]
   96: func
   83: origRenderFunc
   82: output$climTable
    2: shiny::runApp
    1: easyLG_app
Warning: Error in [[: subscript out of bounds
  121: .local
  120: stack
  118: .local
  117: stack
  115: extractBiovar [helper.R#40]
  114: <reactive:getBioclimData> [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#67]
   98: getBioclimData
   97: renderDataTable [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#73]
   96: func
   83: origRenderFunc
   82: output$climTable
    2: shiny::runApp
    1: easyLG_app
Warning: Error in [[: subscript out of bounds
  121: .local
  120: stack
  118: .local
  117: stack
  115: extractBiovar [helper.R#40]
  114: <reactive:getBioclimData> [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#67]
   98: getBioclimData
   97: renderDataTable [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#73]
   96: func
   83: origRenderFunc
   82: output$climTable
    2: shiny::runApp
    1: easyLG_app
Error in .local(.Object, ...) :

Warning: Error in .rasterObjectFromFile: Cannot create a RasterLayer object from this file.
  126: stop
  125: .rasterObjectFromFile
  124: .local
  123: raster
  121: .local
  120: stack
  118: .local
  117: stack
  115: extractBiovar [helper.R#40]
  114: <reactive:getBioclimData> [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#67]
   98: getBioclimData
   97: renderDataTable [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#73]
   96: func
   83: origRenderFunc
   82: output$climTable
    2: shiny::runApp
    1: easyLG_app
Warning: Error in [[: subscript out of bounds
  121: .local
  120: stack
  118: .local
  117: stack
  115: extractBiovar [helper.R#40]
  114: <reactive:getBioclimData> [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#67]
   98: getBioclimData
   97: renderDataTable [C:\Users\GD43514\Documents\R\R-3.6.3\library\easyLG\app/server.R#73]
   96: func
   83: origRenderFunc
   82: output$climTable
    2: shiny::runApp
    1: easyLG_app

it stands stuck after this and not responding any more.

can anyone help?
Mar 19 in Power BI by Girma
• 120 points
206 views

Hey @Girma,

Can you please provide your file.path? Because this kind of error occurs when something is wrong with your file.path.

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Power BI

0 votes
1 answer

Power Query Web request results in “CR must be followed by LF” Error

What I think is, it might look ...READ MORE

answered Oct 29, 2018 in Power BI by Shubham
• 13,380 points
411 views
0 votes
1 answer

How many reports can be created in one Power BI reports

You have a limit of 1000 datasets ...READ MORE

answered Sep 24, 2018 in Power BI by Hannah
• 18,060 points
102 views
0 votes
1 answer

How to load file to Excel Power query from SFTP site

Currently, I don't think there is a ...READ MORE

answered Dec 3, 2018 in Power BI by Upasana
• 8,590 points
796 views
0 votes
1 answer

Replace “yes” found in one list with the actual string from another list

Objective : The idea is to use List.Transform twice, ...READ MORE

answered Feb 19, 2019 in Power BI by Upasana
• 8,590 points
80 views
0 votes
1 answer

count of string in pie chart

Hi Prakash, Select the measure and measure that ...READ MORE

answered May 7, 2019 in Power BI by Cherukuri
• 32,460 points
194 views
0 votes
0 answers

How to check the dynamic file name exists in the downloads folder using UiPath ?

Hello folks, Every time I download the file ...READ MORE

Jun 10 in Power BI by usha
• 120 points
55 views
0 votes
1 answer

How to import text file as a single character string?

First way: rd<-readChar("temp.txt",file.info("temp.txt")$size) ...READ MORE

answered Apr 23, 2018 in Data Analytics by DeepCoder786
• 1,720 points
76 views
0 votes
1 answer

TypeError: argument must be a string node.js while encoding to hex string.

The error is in protobuf.Transaction.create headerSignature needs to be a string, ...READ MORE

answered Nov 6, 2018 in Blockchain by Omkar
• 69,040 points
678 views