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 20, 2020 in Power BI by Girma
• 120 points
1,128 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,490 points
1,886 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,520 points
1,652 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,620 points
3,665 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,620 points
797 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
• 33,030 points
1,635 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, 2020 in Power BI by usha
• 120 points
1,994 views
+1 vote
1 answer

Topic -Power BI Paginated Reports with Excel or CSV file data source

Hi, @There, With Power BI Desktop, you can ...READ MORE

answered Aug 28, 2020 in Power BI by Carlos
1,972 views
0 votes
1 answer
0 votes
1 answer

How to create and publish a Power BI Desktop file?

Use the following procedure to create a ...READ MORE

answered Nov 18, 2020 in Power BI by Gitika
• 65,770 points
859 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP