Forum Discussion

anu_sachan's avatar
anu_sachan
New Member
7 years ago
Solved

MSTS (forecast package) not working in R visual

I am trying to create a multi seasonality model using 'msts' from the forecast package in the R visual tool. When I paste the code in the designated place and try to run it, the R visual does not get displayed. On checking the details, I get the following message - 

 

R script Error

Error in msts(my code)

could not find function "msts"

Execution halted.

 

 

I have searched multiple forums for this error, but didnt found anything. Any help will be appreciated.

  • Hi anu_sachan,

    Based on my test, it could work on my side:

    Could you please check if you have installed the 'forecast' package?

    And could you please check if have entered below code firstly?

    library(forecast)

     

    Regards,

    Daniel He

  • anu_sachan's avatar
    anu_sachan
    7 years ago

    Hi,

     

    I realised that i had mistyped the forecast library and hence it wasnt working. Its working perfectly now. Thanks :D 

3 Replies

  • v-danhe-msft's avatar
    v-danhe-msft
    Microsoft Employee

    Hi anu_sachan,

    Based on my test, it could work on my side:

    Could you please check if you have installed the 'forecast' package?

    And could you please check if have entered below code firstly?

    library(forecast)

     

    Regards,

    Daniel He

    • anu_sachan's avatar
      anu_sachan
      New Member

      Hi,

       

      I realised that i had mistyped the forecast library and hence it wasnt working. Its working perfectly now. Thanks :D 

      • v-danhe-msft's avatar
        v-danhe-msft
        Microsoft Employee

        Hi anu_sachan,

        It's pleasant that your problem has been solved, could you please mark the reply as Answered?

         

        Regards,

        Daniel He