在開發R包時,我想用R的message()或warning()函數爲我的包用戶生成輸出。 有時這些消息可能很長。我能做到這一點(文本只是簡單的例子): message("If you got to this point in the code, it means the matrix was empty. Calculation continues but you should consider
嗨我無法獲得數字用戶輸入並將變量格式化爲像這樣的小數。 usrIn = Decimal input('How much money do you have in your account? ')
print (usrIn)
或 usrIn = input('How much money do you have in your account? ')
usrIn = Decimal('{0: